This documentation is archived and is not being maintained.
FormsAuthentication Methods
Visual Studio 2008
The FormsAuthentication type exposes the following members.
| 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 | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
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. |
|
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 to the URL if you are using cookieless authentication. |
|
SignOut | Removes the forms-authentication ticket from the browser. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show: