如果用户闲置返回登录页面. [英] if the user is idle back to login page.

查看:98
本文介绍了如果用户闲置返回登录页面.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家!下午好.祝你有美好的一天.

我创建了一个Web应用程序并将其托管在IIS服务器中.

如果用户登录到该应用程序,但他没有访问该应用程序.如果用户闲置,则应用程序必须返回登录页面.


请帮我找到一个很好的解决方案.


Dear Experts ! Good Afternoon. Have a good day.

I have created a web application and hosted in IIS server.

if the user login into the application and he is not accessing that application. the application must be back to login page if the user is idle.


Please help in finding me a excellent solution.


thank you very much in advance.

推荐答案

您需要使用会话超时.
会话是管理ASP.Net应用程序状态的一种方法.

在此处阅读有关会话的更多信息- http://msdn.microsoft.com/zh-cn/library/ms972429. aspx [ ^ ].
在此处阅读有关状态管理的更多信息- http://msdn.microsoft.com/en-us/library/75x4ha6s .aspx [ ^ ]

http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session- timeout-and-redirect.html [ ^ ]提供了一个不错的解决方案,一旦会话超时,您就可以进入登录页面.
简而言之,一旦发生超时,您就可以将应用程序指向登录页面.
You need to use a session timeout.
A Session is one way to manage state of an ASP.Net application.

Read more about Sessions here - http://msdn.microsoft.com/en-us/library/ms972429.aspx[^].
Read more about State Management here - http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx[^]

http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html[^] gives a decent solution that takes you to the login page once the session times out.
In short you direct your application to point to the Login page once a timeout has occurred.


这篇关于如果用户闲置返回登录页面.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆