FormsAuthentication Members
.NET Framework 3.0
Manages forms-authentication services for Web applications. This class cannot be inherited.
The following tables list the members exposed by the FormsAuthentication type.
| Name | Description | |
|---|---|---|
| FormsAuthentication | Initializes a new instance of the FormsAuthentication class. |
| Name | Description | |
|---|---|---|
| CookieDomain | Gets the value of the domain of the forms-authentication cookie. |
| CookieMode | Gets a value that indicates whether the application is configured for cookieless forms authentication. |
| CookiesSupported | Gets a value that indicates whether the application is configured to support cookieless forms authentication. |
| DefaultUrl | Gets the URL that the FormsAuthentication class will redirect to if no redirect URL is specified. |
| EnableCrossAppRedirects | Gets a value indicating whether authenticated users can be redirected to URLs in other Web applications. |
| FormsCookieName | Gets the name of the cookie used to store the forms-authentication ticket. |
| FormsCookiePath | Gets the path for the forms-authentication cookie. |
| LoginUrl | Gets the URL for the login page that the FormsAuthentication class will redirect to. |
| RequireSSL | Gets a value indicating whether the forms-authentication cookie requires SSL in order to be returned to the server. |
| SlidingExpiration | Gets a value indicating whether sliding expiration is enabled. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Authenticate | Validates a user name and password against credentials stored in the configuration file for an application. |
| Decrypt | Creates a FormsAuthenticationTicket object based on the encrypted forms-authentication ticket passed to the method. |
| Encrypt | Creates a string containing an encrypted forms-authentication ticket suitable for use in an HTTP cookie. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetAuthCookie | Overloaded. Creates an authentication cookie for a given user name. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetRedirectUrl | Returns the redirect URL for the original request that caused the redirect to the login page. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| HashPasswordForStoringInConfigFile | Produces a hash password suitable for storing in a configuration file based on the specified password and hash algorithm. |
| Initialize | Initializes the FormsAuthentication object based on the configuration settings for the application. |
| RedirectFromLoginPage | Overloaded. Redirects an authenticated user back to the originally requested URL or the default URL. |
| RedirectToLoginPage | Overloaded. Redirects the browser to the login URL. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| RenewTicketIfOld | Conditionally updates the issue date and time and expiration date and time for a FormsAuthenticationTicket. |
| SetAuthCookie | Overloaded. Creates an authentication ticket for the supplied user name and adds it to the cookies collection of the response or the URL. |
| SignOut | Removes the forms-authentication ticket from the browser. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
Reference
FormsAuthentication ClassSystem.Web.Security Namespace
Other Resources
Forms Authentication ProviderCommunity Additions
ADD
Show: