
FormsAuthenticationEventHandler | 541
Security
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
FormsAuthenticationEventArgs
System.Web.Security (system.web.dll)
sealed class
This class is a custom System.EventArgs that is used in the event handler for the FormsAuthen-
ticationModule.Authenticate event. It provides two properties: Context, which provides a
reference to the current System.Web.HttpContext, and User, which will be a null reference
because information is not yet retrieved from the Forms authentication cookie. This
event is not typically used because Forms authentication already uses the custom code
you have created for the login page.
Hierarchy
System.Object ➝ System.EventArgs ➝ FormsAuthenticationEventArgs
Passed To
FormsAuthenticationEventHandler.{BeginInvoke( ), Invoke( )}
FormsAuthenticationEventHandler
System.Web.Security (system.web.dll)
serializable
delegate
This delegate represents the event handler that can be used to handle the FormsAuthentica-
tionModule.Authenticate event. This event handler must be coded in global.asax, using the
event name WindowsAuthentication_OnAuthenticate.
Associated Events
FormsAuthenticationModule.Authenticate( )
public static bool Authenticate(string name, string password);
public static FormsAuthenticationTicket Decrypt(string encryptedTicket);
public static string Encrypt(FormsAuthenticationTicket ...