活动和非活动会话的会话超时. [英] Session Timeout for both Active and Inactive Session.

查看:115
本文介绍了活动和非活动会话的会话超时.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个总会话时间应为2小时的要求,而不管用户是处于活动状态还是非活动状态;如果用户处于非活动状态,则会话超时应为10分钟,那么如何实现这一目标?请对此提供帮助. br/>
谢谢

Shiv

Hi ,

I have a requirement in which total Session Time should be 2 hours, irrespective of whether User is Active or Inactive , If User is Inactive then Session time out should be 10 mins , So how to achieve this ?please help me on this..

Thank you

Shiv

推荐答案

添加一个JavaScript计时器,如果会话处于非活动状态超过10分钟,该计时器将自动刷新.

无论如何,活动会话将保留您所需的时间.
Add a javascript timer which will do the auto-refresh if session is in-active for more than 10min.

Anyhow Active sessions will stay as long as you need.


这篇关于活动和非活动会话的会话超时.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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