System.Web.Security.AnonymousIdentificationModule.Creating Event

Occurs when a new anonymous identifier is created.

Syntax

public event AnonymousIdentificationEventHandler Creating

Remarks

The AnonymousIdentificationModule.Creating event is raised during the System.Web.HttpApplication.PostAuthenticateRequest event.

You can access the AnonymousIdentificationModule.Creating event of the System.Web.Security.AnonymousIdentificationModule class by specifying a subroutine named AnonymousIdentification_Creating in the Global.asax file for your ASP.NET application.

You can use the AnonymousIdentificationEventArgs.AnonymousId property of the System.Web.Security.AnonymousIdentificationEventArgs object supplied to the AnonymousIdentification_Creating event to set the anonymous identifier to a custom value. If you do not specify a value for the AnonymousIdentificationEventArgs.AnonymousId property during the AnonymousIdentification_Creating event, a Guid is used.

The AnonymousIdentification_Creating event is only raised when the anonymous identification is AnonymousIdentificationModule.Enabled.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0