Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can Form Authentication work without cookies?
Message
 
 
To
14/03/2006 16:56:53
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01104350
Message ID:
01104751
Views:
6
>
>If you are still having trouble identifying the cookie that is created, try placing Response.Write(FormsAuthentication.FormsCookiePath & "\" & FormsAuthentication.FormsCookieName) in the page_load. This will tell you exactly where the cookie is.
>
>Also, you have to set values for the isPersistent and Expiration arguments in the FormsAuthenticationTicket constructor. If you do not, IE will delete the cookie file as soon as the request is sent to IIS. I.e. you will never see the cookie in the Cookie folder.

Keith,

Regarding your suggestion for isPersistent and Expiration. I can't find description (in the 2 books on ASP.NET I have) on how to set these values. And where to set this values. Do you have a brief example of how to set FormsAuthenticationTicket?

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform