cookie lost when browing with Windows Explorer

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);
 
P

Paul

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top