cookie lost when browing with Windows Explorer

Frank (archive)

Usenet Archive
Joined
Nov 21, 2000
Messages
417
Reaction score
0
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);
 

Paul (archive)

Usenet Archive
Joined
Jan 19, 2000
Messages
2,241
Reaction score
0
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

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top