[英]Keep http session alive whilst use is on page
If call HttpSession.setMaxInactiveInterval()
with 3600
- meaning an hour and have an AJAX script that hits my sever every 10 minutes, will that be sufficient? 如果用
3600
调用HttpSession.setMaxInactiveInterval()
-表示一个小时,并且每10分钟有一个AJAX脚本命中我的服务器,那足够了吗?
I can't seem to find a reason way to see what sessions are expiring and why, otherwise I would have tested this myself. 我似乎找不到找到查看会话即将到期以及原因的理由,否则我自己会对此进行测试。
You can provide this entry in web.xml. 您可以在web.xml中提供此条目。 This will keep the web session alive for 1 hr.
这将使Web会话保持活动1小时。
<session-config>
<session-timeout>60</session-timeout>
</session-config>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.