Sunday, July 22, 2007

Authentication: Forms Authentication: Class

Class: FormsAuthentication
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

Forms authentication enables username and password validation for Web applications that do not require windows authentication
Once a user is authenticated, forms authentication maintains an authentication ticket in a cookie or in the URL

FormsAuthentication Public Properties:
DefaultURL: URL that user is redirected when no redirect URL is specified
LoginURL : URL to the login page
SlidingExpiration: Enable/Disable sliding expiration
FormsCookieName: Name of the cookie used to store the forms auth ticket
RedirectFromLoginPage: Sends user to requested URL after authentication
RedirectToLoginPage: Redirects to login URL
SignOut: Removes authentication ticket from the browser

No comments: