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