FormsAuthenticationModule Class
.NET Framework 2.0
Sets the identity of the user for an ASP.NET application when forms authentication is enabled. This class cannot be inherited.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The FormsAuthenticationModule sets the current System.Web.HttpContext.User property to an IPrincipal object that represents the user identity for the current request when the authentication Mode is set to Forms in the authentication Element (ASP.NET Settings Schema) element of the application's configuration file.
The FormsAuthenticationModule exposes an Authenticate event that enables you to provide a custom IPrincipal object for the User property of the current HttpContext. The Authenticate event is accessed by specifying a subroutine named FormsAuthentication_OnAuthenticate in the Global.asax file for your ASP.NET application.
- AspNetHostingPermission for using the FormsAuthenticationModule class in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.
Community Additions
ADD
Show: