cookie lost when browing with Windows Explorer

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

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);
 
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
 
Back
Top