Export (0) Print
Expand All

FormsAuthentication Methods

The FormsAuthentication type exposes the following members.

  NameDescription
Public method Static member Authenticate Validates a user name and password against credentials stored in the configuration file for an application.
Public method Static member Decrypt Creates a FormsAuthenticationTicket object based on the encrypted forms-authentication ticket passed to the method.
Public method Static member EnableFormsAuthentication Enables forms authentication using the specified configuration data.
Public method Static member Encrypt Creates a string containing an encrypted forms-authentication ticket suitable for use in an HTTP cookie.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetAuthCookie(String, Boolean) Creates an authentication cookie for a given user name. This does not set the cookie as part of the outgoing response, so that an application can have more control over how the cookie is issued.
Public method Static member GetAuthCookie(String, Boolean, String) Creates an authentication cookie for a given user name. This does not set the cookie as part of the outgoing response.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetRedirectUrl Returns the redirect URL for the original request that caused the redirect to the login page.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member HashPasswordForStoringInConfigFile Produces a hash password suitable for storing in a configuration file based on the specified password and hash algorithm.
Public method Static member Initialize Initializes the FormsAuthentication object based on the configuration settings for the application.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member RedirectFromLoginPage(String, Boolean) Redirects an authenticated user back to the originally requested URL or the default URL.
Public method Static member RedirectFromLoginPage(String, Boolean, String) Redirects an authenticated user back to the originally requested URL or the default URL using the specified cookie path for the forms-authentication cookie.
Public method Static member RedirectToLoginPage() Redirects the browser to the login URL.
Public method Static member RedirectToLoginPage(String) Redirects the browser to the login URL with the specified query string.
Public method Static member RenewTicketIfOld Conditionally updates the issue date and time and expiration date and time for a FormsAuthenticationTicket.
Public method Static member SetAuthCookie(String, Boolean) 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.
Public method Static member SetAuthCookie(String, Boolean, String) Creates an authentication ticket for the supplied user name and adds it to the cookies collection of the response, using the supplied cookie path, or using the URL if you are using cookieless authentication.
Public method Static member SignOut Removes the forms-authentication ticket from the browser.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft