Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Configuring Forms Authentication

Several configuration options are specific to Forms authentication: cookieless:      Use Forms authentication when a browser does not support cookies.                   Possible values are UseCookies, UseUri, AutoDetect, and UseDeviceProfile.                   The default value is UseDeviceProfile. defaultUrl:      Set the redirected page after being authenticated.                   The default value is Default.aspx. domain:          Domain associated with the authentication cookie.                   The default value is an empty string. enableCrossAppRedirects:      authenticate users across applications by passing an authentication ticket in a query string.                                The default value is false. loginUrl:        Set the path to the Login page.                   The default value is Login.aspx. name:            specify the name of the authentication cookie.                   The default value is .ASPXAUTH. path:            Set the path associated with the authentication cookie.                   The default value is /. protection:      Set how the authentication cookie is encrypted.                   Possible values are All, Encryption, None, and Validation.                   The default value is All. requiresSSL:     Require a SSL (Secure Sockets Layer) connection when transmitting the authentication cookie.                   The default value is false. slidingExpiration:      Prevent the authentication cookie from expiring as long as a user continues to make requests within an interval of time.                          Possible values are True and False.                          The default value is True. timeout:          Set the amount of time in minutes before the authentication cookie expires.                     The default value is 30.