Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Authenticate Event
Collapse the table of content
Expand the table of content

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
public event FormsAuthenticationEventHandler Authenticate;
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.


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

See Also

FormsAuthenticationModule Class | FormsAuthenticationModule Members | System.Web.Security Namespace

© 2015 Microsoft