且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检测会话超时并重定向到asp.net c#中的登录页面

更新时间:2023-11-23 11:00:40

http: //csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html [ ^ ]

http://mattslay.com/detecting-session-timeout-in-asp-net/ [ ^ ]

http://forums.asp.net/p/1104278/1685530.aspx [ ^ ]
http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html[^]
http://mattslay.com/detecting-session-timeout-in-asp-net/[^]
http://forums.asp.net/p/1104278/1685530.aspx[^]


检查它

http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html [ ^ ]


void Session_Start(object sender,EventArgs e)

{

Response.Redirect(LoginPage.aspx);

}



在Global.asax文件下
void Session_Start(object sender, EventArgs e)
{
Response.Redirect("LoginPage.aspx");
}

Under Global.asax file