Using the FormsAuthentication Class

The main application programming interface for interacting with Forms authentication is the FormsAuthentication class. This class supports the following properties:

CookieDomain Returns the domain associated with the authentication cookie.

CookieMode Returns the cookieless authentication mode. Possible values are AutoDetect, UseCookies, UseDeviceProfile, and UseUri.

CookiesSupported Returns True when a browser supports cookies and Forms authentication is configured to use cookies.

DefaultUrl Returns the URL of the page to which a user is redirected after being authenticated.

EnableCrossAppRedirects Returns True when an authentication ticket can be removed from a query string.

FormsCookieName ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.