FormsAuthenticationModule.Authenticate Event
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.
Event Data
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.
| Property | Description |
|---|---|
| Context | Gets the HttpContext object for the current HTTP request. |
| User | Gets or sets the IPrincipal object to be associated with the request. |
Remarks
This event is raised when an authentication cookie is received. For more information about handling events, see Consuming Events.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
FormsAuthenticationModule Class | FormsAuthenticationModule Members | System.Web.Security Namespace