ASP.NET Session 清除

// 值为 null,这样对应的 Session 会继续存在,但值为 null
Session["UserId"] = null;

// 移除指定 Session
Session.Remove("UserId");

// 移除所有 Session
Session.Abandon();
原文地址:https://www.cnblogs.com/taadis/p/12126084.html