System.Web
2.0.0.0
System.Configuration.ConfigurationSection
The class allows you to programmatically access and modify the anonymousIdentification element of a configuration file.
The purpose of anonymous identification is to assign, at machine and application level, a unique identity to a non-authenticated user. This unique identity can then be used to track the user. Anonymous identification as used in this context does not have any relationship with the identity of the issuer of the Web request or with other security aspects related to the user; it simply assigns a unique identity for tracking purposes and user state management.
Anonymous users are often tracked using the Session identifier. The main problems with this approach are the non-uniqueness of the identifier and the overhead involved in storing data to set a Session state value, which must be done in order to assign a session identifier to a user. Anonymous identification resolves these problems by providing a unique identifier for each non-authenticated user and not requiring the user to store any data to set the identifier.
Configures anonymous identification for users that are not authenticated. This class cannot be inherited.
Constructor
The constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the class by using the method.
Initializes a new instance of the class.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieless", DefaultValue="UseCookies")
System.Web.HttpCookieMode
To be added.
The property defines when a cookie should be used to maintain information about the user.
When the property is set to , the user's identifier is stored in a cookie. For more information, refer to .
ASP.NET stores the user's anonymous identifier within the URI path (that is, it runs in cookieless mode) if the property is set to one of the following values: ; when the browser profile indicates that cookies are not supported; or when the auto-detection process determines that the browser does not support cookies. Finally, if the size of the URI and the anonymous identifier exceeds the allowed length, the anonymous identifier is not applied.
Gets or sets a value indicating whether to use cookies.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieName", DefaultValue=".ASPXANONYMOUS")
System.Configuration.StringValidator(MinLength=1)
System.String
To be added.
To be added.
Gets or sets the cookie name.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")
System.Configuration.StringValidator(MinLength=1)
System.String
To be added.
The property indicates where the authentication cookie resides and is transmitted along with the authentication cookie itself.
Gets or sets the path where the cookie is stored.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieProtection", DefaultValue="Validation")
System.Web.Security.CookieProtection
To be added.
To improve the protection of your cookie, you may want also set the property to true.
Be sure to use the default value for this property if you want both data validation and encryption to help protect the cookie. This option uses the configured data-validation algorithm, based on the <machineKey> element. Triple-DES (3DES) is used for encryption, if available and if the key is long enough (48 bytes or more).
Gets or sets the encryption type used to encrypt the cookie.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieRequireSSL", DefaultValue="False")
System.Boolean
To be added.
If is true, a compliant browser does not return the cookie unless the connection is over SSL.
When the anonymous identifier is stored within the URI path, rather than in a cookie, the setting does not affect the behavior of the anonymous identification module. This is consistent with the behavior in forms authentication.
Gets or sets a value indicating whether a Secure Sockets Layer (SSL) connection is required when transmitting authentication information.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieSlidingExpiration", DefaultValue="True")
System.Boolean
To be added.
When is set to true, for each request issued during a single session the time interval during which the cookie is valid is reset to the amount of time specified in the property. When is set to false, the cookie expires at a set point in time.
Gets or sets whether the cookie time-out value is reset on each request.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("cookieTimeout", DefaultValue="69.10:40:00")
System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanMinutesOrInfiniteConverter))
System.Configuration.TimeSpanValidator(MinValueString="00:00:00", MaxValueString="10675199.02:48:05.4775807")
System.TimeSpan
To be added.
This property can be set to an arbitrarily large value, but internally the value is limited to a maximum value of two years.
Gets or sets the amount of time, in minutes, after which the authentication expires.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("domain")
System.String
To be added.
This attribute allows sharing of the anonymous identification cookie across domains that have a common DNS namespace (for example, all sites that end in "contoso.com"). The following requirements must be met in order for anonymous identification cookies to be shared:
-
Sites that want to share the cookie need to have common decryption and validation keys.
-
Other anonymous identification configuration attributes such as cookie path and cookie name must be the same for all the sites.
For more information, refer to the class.
Gets or sets the cookie domain.
2.0.0.0
Property
System.Configuration.ConfigurationProperty("enabled", DefaultValue="False")
System.Boolean
To be added.
If is set to true, a cookie is used to manage the user's state information.
Gets or sets a value indicating whether anonymous identification is enabled.
2.0.0.0
Property
System.Configuration.ConfigurationPropertyCollection
To be added.
To be added.
Gets the collection of properties.
2.0.0.0