현재 세션이 끝나고 해당 구성이 에서 작동해야하는 경우 리디렉션을 수행하고 싶습니다. 및 컨트롤러을 봅니다. Global.asax에에페이지 ASP.Net MVC에서 세션 종료시 리디렉션
내 현재 코드 :
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");
}