如果浏览器空闲5分钟

如果浏览器空闲5分钟

本文介绍了如果浏览器空闲5分钟,则会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们使用c#在asp.net中开发Web应用程序。我们使用IIS7.0和windows vista进行开发。

我使用的是Windows身份验证和本地系统身份。

如果用户在5分钟后没有访问网站5分钟(意味着浏览器闲置5分钟),我希望这样。当用户点击任何链接时,他的会话应该过期,并且他必须再次提供登录凭据。


我尝试过使用

< sessionState cookieless = "假QUOT; mode =" InProc timeout =" 5" />


在web.config文件中但它无法正常工作。


请在这个问题上帮助我。


谢谢

Anu

Hi All,

We r developing web application in asp.net using c#. we r using IIS7.0 and windows vista for development.
I m using windows authentication and "local Sytem" Identity.
I want that if user is not accessing site for 5 minutes(means browser is idle for 5 min) , after 5 min. when user clicks on any link, his session should be expired and he has to provide login credentials again.

I have tried using
<sessionState cookieless="False" mode="InProc timeout="5" />

in web.config file but its not working.

Please help me in this issue.

Thanks
Anu

推荐答案




这篇关于如果浏览器空闲5分钟,则会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 07:38