62,041
社区成员
发帖
与我相关
我的任务
分享
用下面两种方法都不行,是不是我登录时出问题
HttpCookie c2 = new HttpCookie(FormsAuthentication.FormsCookieName);
c2.Domain = FormsAuthentication.CookieDomain;
c2.Expires = DateTime.Now.AddHours(-1);
Response.Cookies.Add(c2);
//FormsAuthentication.SignOut();
//HttpContext.Current.Session.Abandon();
//FormsAuthentication.RedirectToLoginPage();