會話結束,我想你重定向到登錄時當前會話結束,並且配置必須在任何查看和控制器合作。頁轉到當在ASP.Net MVC
我在Global.asax中當前代碼:
protected void Session_End(object sender, EventArgs e)
{
Session.Abandon();
//GetPath() is getting currently path
// eg. http://localhost/mymvcproject
Response.Redirect(PATH.GetPath() + "User/LogOn");
}