all groups > asp.net > june 2003 >
You're in the

asp.net

group:

cookie lost when browing with Windows Explorer


cookie lost when browing with Windows Explorer Frank
6/30/2003 10:17:40 PM
asp.net: Hi all,

I am using Forms authentication with login.aspx page as below to issue a
ticket, then send the cookie to the client such that next request from the
client should bring the credential.

It works perfectly with Internet Explorer. But if I use Windows Explorer to
access the web site, the cookie is missing upon the subsequent request.
Does not Windows Explorer also use IE component to access the web site?


Thanks a lot.
Frank


FormsAuthenticationTicket authTicket = new
FormsAuthenticationTicket(
1,
empName,
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
userData );

string encryptedTicket =
FormsAuthentication.Encrypt(authTicket);

HttpCookie authCookie =new HttpCookie
(FormsAuthentication.FormsCookieName, encryptedTicket);

Response.Cookies.Add(authCookie);


Re: cookie lost when browing with Windows Explorer Paul
7/1/2003 4:33:39 AM
Perhaps Windows Explorer runs in a different security zone (like email
does). This zone might not accept cookies. My guess is that's your
problem. I can't really suggest a solution though, except clocking it as an
issue, and advising people not to do it!

Paul

[quoted text, click to view]

AddThis Social Bookmark Button