Defines the event raised during authentication. This is a Global.asax event that must be named FormsAuthentication_OnAuthenticate. You can use this event to customize cookie authentication.
[Visual Basic] Public Event Authenticate As FormsAuthenticationEventHandler [C#] public event FormsAuthenticationEventHandler Authenticate; [C++] public: __event FormsAuthenticationEventHandler* Authenticate;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
The event handler receives an argument of type FormsAuthenticationEventArgs containing data related to this event. The following FormsAuthenticationEventArgs properties provide information specific to this event.
|Context||Gets the HttpContext object for the current HTTP request.|
|User||Gets or sets the IPrincipal object to be associated with the request.|
This event is raised when an authentication cookie is received. For more information about handling events, see Consuming Events.
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family