0
我在登录页面使用此代码。这很好。FormsAuthentication.SignOut不适用于Firefox 3(asp.net)
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, // Ticket version
eUserName.Text,
DateTime.Now,
DateTime.Now.AddMinutes(30),
true,
"administrator",
FormsAuthentication.FormsCookiePath);
string hash = FormsAuthentication.Encrypt(ticket);
HttpCookie cookie = new HttpCookie(
FormsAuthentication.FormsCookieName,
hash);
// Set the cookie's expiration time to the tickets expiration time
if (ticket.IsPersistent) cookie.Expires = ticket.Expiration;
// Add the cookie to the list for outgoing response
Response.Cookies.Add(cookie);
Response.Redirect("Default.aspx");
但是,当我注销使用FormsAuthentication.SignOut或asp:LoginStatus控件这是不注销。这似乎登录。当我在Internet Explorer 8上进行测试时,此注销成功。
对Firefox有什么影响? 我该如何解决这个问题?
感谢
ebattulga