Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Form Authentication work without cookies?
Message
 
 
À
14/03/2006 16:56:53
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01104350
Message ID:
01104403
Vues:
6
>
>Dmitry,
>
>Yes, you have to use cookies for Forms Authentication. The setting that you changed in the web.config does not affect Forms Authentication in any way. SessionState cookieless="true" tells the session class to use a Url querystring to store the session ID instead of a cookie.
>
>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,

Thank you very much for your help. I will try all your suggestions tomorrow. Right now, since I have to make an important presentation tomorrow, I decided to "fake" the entire Form Authentication. My login form will be the default form and it will redirect to the "real" main form. I am sure you are familiar with those times when you are against the clock and have to do thing the "wrong" way.

Again, 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform