asp.net.ph

AnonymousIdentificationModule Class

System.Web.Security Namespace


.NET Framework version 2.0

Manages anonymous identifiers for the ASP.NET application.

AnonymousIdentificationModule Class Members

Collapse   Constructors

Visibility Constructor Parameters
public AnonymousIdentificationModule ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public static Enabled Boolean [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public static ClearAnonymousIdentifier ( ) Void
public Dispose ( ) Void
public Init ( HttpApplication app ) Void

Collapse   Events

Multicast Name Type
multicast Creating AnonymousIdentificationEventHandler

Remarks

The AnonymousIdentificationModule class creates and manages anonymous identifiers for an ASP.NET application. Anonymous identifiers are used by features that support anonymous identification such as the ASP.NET System.Web.Profile.

The AnonymousIdentificationModule exposes a Creating event that enables you to set the anonymous identifier to a custom value. If you do not specify a custom anonymous identifier value, a Guid is used.

The Creating event is accessed by specifying a subroutine named AnonymousIdentification_Creating in the Global.asax file for your ASP.NET application.

The AnonymousIdentificationModule is only used when anonymous identification is Enabled by setting the enabled attribute of the anonymousIdentification configuration element to true.

NOTE: Anonymous identification is independent of any type of ASP.NET authentication.

Example

The following code example shows a Web.config file for an application that enables anonymous identification.

<configuration>
   <system.web>
      <authentication mode = "Forms" >
         <forms loginUrl = "login.aspx" name = ".ASPXFORMSAUTH" />
      </authentication>

      <anonymousIdentification enabled = "true" />

      <profile defaultProvider = "AspNetSqlProvider">
         <properties>
            <add name = "ZipCode" allowAnonymous = "true" />
            <add name = "CityAndState" allowAnonymous = "true" />
            <add name = "StockSymbols" type = "System.Collections.ArrayList" 
               allowAnonymous = "true" />
         </properties>
      </profile>
   </system.web>
</configuration>
See Also

<anonymousIdentification> Section 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