当浏览器理想的几分钟时,它应该从应用程序注销 [英] when browser ideal for few minutes it should logout from the application
本文介绍了当浏览器理想的几分钟时,它应该从应用程序注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我已经构建了一个应用程序,客户端想要这个,当浏览器理想的几分钟时,它应该自动注销从应用程序n重定向到登录页面。
我已经尝试过这个:
< meta content =200; URL = Logout.aspxhttp-equiv =refresh/>
但是,这是从页面注销但不理想,
表示:是否理想,每隔4分钟重定向到登录页面。
Plzzz,建议我。
thnx
解决方案
像这样修改你的web.config:
< configuration >
< system.web >
< sessionState timeout = 20 > < / sessionState >
< / system.web >
< / configuration >
>
参考文章 - 会话超时警告和重定向 [ ^ ]并回答会话超时后自动重定向到页面 [ ^ ]。
你可以尝试任何方法
Hi guys,
I have build one application, n the client want this as, when the browser is ideal for few minutes, it should automatically log-out from the application n redirect to login page.
I have already tried this:
<meta content="200;URL=Logout.aspx" http-equiv="refresh" />
But, this is log out from the page but not in ideal,
means: whether it is ideal or not, it redirecting to login page for every 4mins.
Plzzz, suggest me.
thnx
解决方案
Modify your web.config like this:
<configuration> <system.web> <sessionState timeout="20"></sessionState> </system.web> </configuration>
Refer article - Session Timeout Warning and Redirect[^] and answer Automatically redirect to page after session timeout[^].
You can try any method.
这篇关于当浏览器理想的几分钟时,它应该从应用程序注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文