Session.Abandon();
//
清除全部Session
// 清除某个Session
Session[ " UserName " ] = null ;
Session.Remove( " UserName " );
// 清除某个Session
Session[ " UserName " ] = null ;
Session.Remove( " UserName " );
转载于:https://www.cnblogs.com/dullbaby/p/5345385.html