1
我有一个ashx处理程序并希望根据请求清除会话。我没有将对象设置为Session.Abondon()行上的对象实例。我正在尝试注销用户。在logout.ashx中清除会话
public void ProcessRequest (HttpContext context) {
//context.Response.ContentType = "text/plain";
//context.Response.Write("Hello World");
FormsAuthentication.SignOut();
context.Session.Abandon();
context.Response.Redirect("/login.aspx");
}
我做错了什么?
就是这样。谢谢。我会在15分钟内检查。 – Dietpixel