seanly

 

asp.net(C#)清除全部Session与单个Session

Session.Abandon();//清除全部Session
//清除某个Session
Session["UserName"= null;
Session.Remove(
"UserName");

posted on 2009-12-18 13:50  seanly  阅读(403)  评论(0)    收藏  举报

导航