FormsAuthentication Methods

FormsAuthentication Methods

 

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAuthenticate(String, String)

Obsolete.Validates a user name and password against credentials stored in the configuration file for an application.

System_CAPS_pubmethodSystem_CAPS_staticDecrypt(String)

Creates a FormsAuthenticationTicket object based on the encrypted forms-authentication ticket passed to the method.

System_CAPS_pubmethodSystem_CAPS_staticEnableFormsAuthentication(NameValueCollection)

System_CAPS_pubmethodSystem_CAPS_staticEncrypt(FormsAuthenticationTicket)

Creates a string containing an encrypted forms-authentication ticket suitable for use in an HTTP cookie.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetAuthCookie(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.

System_CAPS_pubmethodSystem_CAPS_staticGetAuthCookie(String, Boolean, String)

Creates an authentication cookie for a given user name. This does not set the cookie as part of the outgoing response.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetRedirectUrl(String, Boolean)

Returns the redirect URL for the original request that caused the redirect to the login page.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticHashPasswordForStoringInConfigFile(String, String)

Obsolete.Produces a hash password suitable for storing in a configuration file based on the specified password and hash algorithm.

System_CAPS_pubmethodSystem_CAPS_staticInitialize()

Initializes the FormsAuthentication object based on the configuration settings for the application.

System_CAPS_pubmethodSystem_CAPS_staticRedirectFromLoginPage(String, Boolean)

Redirects an authenticated user back to the originally requested URL or the default URL.

System_CAPS_pubmethodSystem_CAPS_staticRedirectFromLoginPage(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.

System_CAPS_pubmethodSystem_CAPS_staticRedirectToLoginPage()

Redirects the browser to the login URL.

System_CAPS_pubmethodSystem_CAPS_staticRedirectToLoginPage(String)

Redirects the browser to the login URL with the specified query string.

System_CAPS_pubmethodSystem_CAPS_staticRenewTicketIfOld(FormsAuthenticationTicket)

Conditionally updates the issue date and time and expiration date and time for a FormsAuthenticationTicket.

System_CAPS_pubmethodSystem_CAPS_staticSetAuthCookie(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.

System_CAPS_pubmethodSystem_CAPS_staticSetAuthCookie(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.

System_CAPS_pubmethodSystem_CAPS_staticSignOut()

Removes the forms-authentication ticket from the browser.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show:
© 2016 Microsoft