📄 handler.ashx
字号:
<%@ WebHandler Language="C#" Class="Handler" %>
using System;
using System.Web;
using System.Web.SessionState;
public class Handler : IHttpHandler, IReadOnlySessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Session["DispUser"] =null;
context.Session["logintime"] =null;
context.Session["CurrUser"] = null;
context.Response.Write("<script language='javascript'>window.status='您已经成功退出系统!感谢您的使用!'</script>");
context.Server.Transfer("Index.aspx");
}
public bool IsReusable {
get {
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -