ASP.NET自动注销 [英] ASP.NET Automatic logout
本文介绍了ASP.NET自动注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做的与其他4人组项目。我们正在设计在ASP.NET工作亭在MVC4嵌入C#。
I am doing a group project with 4 other people. We are designing a job kiosk in ASP.NET in MVC4 with embedded c#.
我的工作具有系统注销用户,如果他们是空闲10分钟。我需要如何开始编码系统记录用户出路一些帮助。
I am working on having the system log the user out if they are idle for 10 minutes. I need some help on how to start coding a way for the system to log the user out.
推荐答案
如果您不使用Windows身份验证,这至少取决于会话超时您可以通过web.config中控制:
If you don't use "Windows Authentication", this at least depends on the session timeout you can control via web.config:
<configuration>
<system.web>
<sessionState timeout="10" />
</system.web>
</configuration>
由于大部分技术在某种程度上依赖于会议,这将在大多数情况下工作。
As most techniques somehow rely on sessions, this will work in most scenarios.
这篇关于ASP.NET自动注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文