asp.net.ph

AnonymousIdentificationSection Class

System.Web.Configuration Namespace


.NET Framework version 2.0

Configures anonymous identification for users that are not authenticated. This class cannot be inherited.

AnonymousIdentificationSection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public AnonymousIdentificationSection ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public Cookieless HttpCookieMode [ Get , Set ]
public CookieName String [ Get , Set ]
public CookiePath String [ Get , Set ]
public CookieProtection CookieProtection [ Get , Set ]
public CookieRequireSSL Boolean [ Get , Set ]
public CookieSlidingExpiration Boolean [ Get , Set ]
public CookieTimeout TimeSpan [ Get , Set ]
public Domain String [ Get , Set ]
public Enabled Boolean [ Get , Set ]

Remarks

The AnonymousIdentificationSection class provides a way to programmatically access and modify the anonymousIdentification section 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.

Example

The following example shows how to obtain the AnonymousIdentificationSection object from the underlying configuration file. You use this object to get or set the related configuration values.

// Get the applicaqtion configuration.
Configuration configuration = 
   WebConfigurationManager.OpenWebConfiguration ( "/aspnetTest" );

// Get the section.
AnonymousIdentificationSection anonymousIdentificationSection =
  ( AnonymousIdentificationSection ) configuration.GetSection ( 
      "system.web/anonymousIdentification" );
  C# VB

See Also

ASP.NET Configuration   <anonymousIdentification> Section   AnonymousIdentificationModule Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph