如果用户闲置1分钟,则重定向到登录页面 [英] if user idle for 1 minutes redirect to login page
本文介绍了如果用户闲置1分钟,则重定向到登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的网站上添加一些功能,如果用户空闲1分钟,它将被重定向到登录页面.所以为此,我在web.config文件中添加了一个iine,但不起作用..
i want to add some facility in my website in which if the user is idle for 1 minutes it will be redirect to the login page. so for this i added one iine in web.config file but not works..
<appSettings>
<add key ="sessionTimeout" value ="10"></add>
</appSettings>
所以,如果有问题,请告诉我.
谢谢......
Mitesh
so, if there is the problem so please tell me.
Thanks....
Mitesh
推荐答案
<system.web>
<authentication mode="Forms">
<forms timeout="50"/>
</authentication>
<sessionstate timeout="60" />
</system.web>
<authentication mode="Forms">
<forms loginUrl="Default.aspx" protection="All" timeout="60" name="" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Home/Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false">
</forms>
</authentication>
try this link
这篇关于如果用户闲置1分钟,则重定向到登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文