检测会话超时并重定向到asp.net c#中的登录页面 [英] detecting session timeout and redirect to login page in asp.net c#

查看:95
本文介绍了检测会话超时并重定向到asp.net c#中的登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PLZ帮我解决会话..



i已经浏览了互联网上的所有代码..甚至尝试一切都没有用的工作..

plz帮我一步一步创建和执行..







i感谢帮助。我也经历了以下所有这些链接...

i希望它自动重定向到登录页面..不要在会话结束时点击按钮..



如果有人知道应该在Session_end - > Global.aspx中编写的代码究竟是什么,这会解决我的问题并在会话时间结束时自动重定向到登录页面..

plz help me with Session..

i have gone through all the code on internet.. and even try every thing nothing working..
plz help me step by step creating and executing..



i appreciate the help.. i have also gone through all these link below ...
i want it automatically to redirect to login page.. not by clicking the button when the session ends..

if any one know what exactly the code should be written in "Session_end --> Global.aspx" guess this will solve my problem and redirect to login page automatically when session time is out..

推荐答案

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


这篇关于检测会话超时并重定向到asp.net c#中的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆