Session Timeout(session.setMaxInactiveInterval) is not working in Google Appengine

醉酒当歌 提交于 2019-12-21 21:27:21

问题


I tried to set the Session timeout for particular users using session.setMaxInactiveInterval(30*60) 30 minutes . But by default it's assigned to 86400 seconds (24 hrs).

Also tried in Web.xml

<session-config>
  <session-timeout>30</session-timeout> // Session timeout assigned for all the users
</session-config>

回答1:


It looks HttpSession.setMaxInactiveInterval() is not honoured by the AppEngine platform anymore (it worked in the past).

You can however still specify session timeout in the web.xml:

<session-config>
    <session-timeout>30</session-timeout>  <!-- 30 min --> 
</session-config>


来源:https://stackoverflow.com/questions/25803917/session-timeoutsession-setmaxinactiveinterval-is-not-working-in-google-appengi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!