/// <summary>
/// 退出系统
/// </summary>
/// <returns></returns>
public ActionResult Quit()
{
Session.Abandon(); //取消Session会话
Session["UserId"] = null;
Session["Role"] = null;
return RedirectToAction("Login", "Auth", new { area = "" }); //回到指定界面
}
.net简单的退出登录方法
于 2022-01-20 08:43:09 首次发布