自动注销并重定向到登录页面 [英] Auto Logout And Redirect To Login Page
本文介绍了自动注销并重定向到登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在会话到期时自动重定向到登录页面的代码。
这里需要考虑以下事项。
1)当页面处于空闲模式时[如果会话过期自动重定向到登录屏幕并终止会话]
2)当用户执行任何操作时会增加会话时间。
注意:当页面处于空闲模式时,只有当会话到期时才会自动重定向到登录屏幕。
怎么可能?
请帮帮我。
解决方案
我相信你需要这个案例使用JavaScript。我希望以下链接可以帮到你。
如何当页面空闲2分钟时,使用确认按钮注销? [ ^ ]
Hi,
I need code for auto redirect to Login page when session expires.
here need to consider the following things.
1)when page is in idle mode[if session expires auto redirect to login screen and kill the session]
2) when user performing any action increase the session time.
Note : when page in idle mode then only auto redirect to login screen when session expires.
How it can be possible?
Please help me.
解决方案
I believe in this case you need to use JavaScript. I hope below link will help you.
how to logout with confirm button when page opens idle for 2 mins ?[^]
这篇关于自动注销并重定向到登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文