如何在页面间隔未使用后将页面指向登录页面 [英] How Do I Direct A Page To Login Page After Certain Interval Of Page Being Unused
本文介绍了如何在页面间隔未使用后将页面指向登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果用户没有使用该页面说15秒,如何在一定的时间间隔内将页面从asp.net中的一个页面导入页面...我已经决定使用计时器..有没有替代方案这??? ???
how can i direct a page to login page from one page in asp.net after certain time interval if the user has not used the page for say 15 second .. i have decided to use timer.. is there any alternative to this???
推荐答案
检查这些链接:
http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html [ ^ ]
http://www.aspdotnet-suresh。 com / 2012/10 / jquery-redirect-to-another-page-after-5.html [ ^ ]
http://www.aspdotnet-suresh.com/2012/10/javascript-redirect-to-another-page.html [ ^ ]
Check these links:
http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html[^]
http://www.aspdotnet-suresh.com/2012/10/jquery-redirect-to-another-page-after-5.html[^]
http://www.aspdotnet-suresh.com/2012/10/javascript-redirect-to-another-page.html[^]
看看这个 [ ^ ]文章。
基本上,设置会话到期时间,向页面添加刷新标头并设置重定向URL。会话到期后,用户将被重定向到标题中指定的URL。
Take a look at this[^] article.
Essentially, you set a session expiry time, add a refresh header to the page and set the redirect URL. Once the sessions expires, users will be redirected to URL specified in the header.
您好,
您可以尝试使用以下代码:
< ;标题>页面自动重定向
这是一个自动重定向页面。
你可以通过设定时间来做:
函数redirect(){
window.location =
Hi,
You can try with the following code:
<title>Page Auto Redirect
This is an auto redirect page.
You can alos do by setting time:
function redirect(){
window.location =
这篇关于如何在页面间隔未使用后将页面指向登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文