Professional Documents
Culture Documents
Forms
Authentication
<authentication mode="Forms">
<!-- Detailed configuration options -->
<forms name="MyCookieName"
loginUrl="DbLogin.aspx"
timeout="20"
slidingExpiration="true"
cookieless="AutoDetect"
protection="All"
requireSSL="false"
enableCrossAppRedirects="false"
defaultUrl="MyDefault.aspx"
domain="www.mydomain.com"
path="/" />
</authentication>
FormsAuthentication.RedirectFromLoginPage
(UsernameText.Text, false);
This method performs several tasks at
once:
1. It creates an authentication ticket for the
user.
2. It encrypts the information from the
authentication ticket.
3. It creates a cookie to persist the
encrypted ticket information.
4. It adds the cookie to the HTTP response,
sending it to the client.
5. It redirects the user to the originally
requested page
PassportAuthenticationModule
The PassportAuthenticationModule provides a wrapper for
Microsofts Passport authentication service. When using
Passport, users are authenticated using the information in
Microsofts Passport database (the same technology that
powers the free Hotmail e-mail system).
The advantage of Passport is that you can use existing
user credentials (such as an e-mail address and password),
without forcing users to go through a separate registration
process.
We recommend not even thinking about using .NET
Passport authentication anymore, as it has been replaced
by a new concept called Live ID