Re: FormsAuthentication & createPersistentCookie
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 05 Jun 2006 02:24:41 GMT
Hi Alex,
The "createPersistentCookie" parameter in the
FormsAuthentication.RedirectFromLoginPage() method controls whether the
ASP.NET will create a persistent cookie or session cookie for the
authentication ticket of the current login user. Forms authentication's
authentication ticket is stored in client-side cookie by default. There are
two kinds of cookies, session cookie and persistent cookie. Session cookie
is only available during its lifecycle(before it expires), however, if the
client user close the browser, the session cookie will also be no longer
available. While persistent cookie is always available as long as it
hasn't expired (even if the client user close the browser). So using
"persistent cookie" can provide a "remember me " function like many
websites do.
Also, the username/password is required only when the user is
authenticating against the login page. After he has logedIn, an
authentication ticket is produced and cached in the user's client-side
cookie(the default behavior). And all the sequential requests from the user
will use this ticket(from cookie) to perform the authentication (rather
than username/password credentials) as long as the ticket hasn't expired.
Hope this helps clarify some. If there is still anything unclear, please
feel free to post here.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- Re: FormsAuthentication & createPersistentCookie
- From: Steven Cheng[MSFT]
- Re: FormsAuthentication & createPersistentCookie
- References:
- Re: FormsAuthentication & createPersistentCookie
- From: Dominick Baier [DevelopMentor]
- Re: FormsAuthentication & createPersistentCookie
- Prev by Date: Re: impersonation for file & DB access
- Next by Date: Re: request page I can't have -> goes to login
- Previous by thread: Re: FormsAuthentication & createPersistentCookie
- Next by thread: Re: FormsAuthentication & createPersistentCookie
- Index(es):
Relevant Pages
|