无论活动如何如何自动注销 [英] How to auto logout regardless of Activity

查看:80
本文介绍了无论活动如何如何自动注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据会话超时自动注销用户会话,而不管活动还是不活动.另外,我们如何在页面上显示会话超时计时器.


谢谢.

How to auto logout a user session based on the session timeout regardless of Activity or Inactivity. Also how can we show a session timeout timer on the page.


Thanks.

推荐答案

您必须设置会话超时.阅读 ASP.NET会话状态 [
You have to set your session timeout. Read ASP.NET Session State[^]


请稍等,会话超时的整个想法一旦没有活动,则结束会话.还是要在用户花了一定时间在页面/网站上之后使会话过期?

无论如何,请查看以下链接以获取灵感,以在您的网页上显示计时器.

http://programmerramblings.blogspot.nl/2009/08/aspnet-session- timeout-control-jquery.html [ ^ ]

http://www.misfitgeek.com/2010/02/session-time-out-tricks / [^ ]
Hold on, the whole idea of session timeout is to end the session once there is no activity. Or do you want to expire the session after a certain time user has spent on your page/website?

Anyways, Look at the following links for inspiration to show timer on your webpage.

http://programmerramblings.blogspot.nl/2009/08/aspnet-session-timeout-control-jquery.html[^]

http://www.misfitgeek.com/2010/02/session-time-out-tricks/[^]


看看 ASP.NET中的警报会话超时 [

这篇关于无论活动如何如何自动注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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