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

Session.Abandon();//清除全部Session
//清除某个Session
Session["UserName"= null;
Session.Remove(
"UserName");
小菜一碟,在google中居然搜索不到,记录一下。
原文地址:https://www.cnblogs.com/greatverve/p/1626512.html