Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i know whats happening in background when i am changing the createPersistentCookie to true/false in the following method.

C#
Response.Redirect(FormsAuthentication.GetRedirectUrl(userName.Text, true));
Response.Redirect(FormsAuthentication.GetRedirectUrl(userName.Text, False));
Posted
Updated 6-Aug-12 22:45pm
v3

1 solution

When false, the role-names cookie is a session cookie, that is, the cookie is lost when the browser is closed. When true, the role-names cookie is a persistent cookie that is available across multiple browser sessions. The persistent cookie expiration date and time are set to the current date and time plus the CookieTimeout value in minutes.

Check this.

http://msdn.microsoft.com/en-us/library/system.web.security.roles.createpersistentcookie.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900