/// summary>
/// LogoutHandler 的摘要说明
/// /summary>
public class LogoutHandler : IHttpHandler,IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Session.Clear(); //从会话状态集合中移除所有的键和值
context.Session.Abandon(); //取消当前会话
context.Response.Redirect("/account/login.aspx"); //跳转登录页
}
public bool IsReusable
{
get
{
return false;
}
}
}