// 值为 null,这样对应的 Session 会继续存在,但值为 null Session["UserId"] = null; // 移除指定 Session Session.Remove("UserId"); // 移除所有 Session Session.Abandon();