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