62,072
社区成员
发帖
与我相关
我的任务
分享
if (Session["admin"] == null)
{
Session.Abandon //销毁Session对象,释放内存
Session.Contents.Remove("mysession") //清除Session对象的内容,但Session对象任然存在
Session.Contents.ClearAll //清除所有Session对象的内容,有点狠了!看你自己需要!
clearall和removeall?
Response.Redirect("LoginRegis.aspx?page=Default.aspx");
}