问题
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