C#--Session用完如何清除

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

原文地址:https://www.cnblogs.com/qq1040991197/p/3198483.html