0
您可以在web.xml中设置的所有会话的会话超时(比如60分钟):理想春季会议超时配置
<session-config>
<session-timeout>60</session-timeout>
</session-config>
或在每个会话使用
session.setMaxInactiveInterval(60*60);
后者你可能想在authorizationSuccessHandler中做。
<form-login authentication-success-handler-ref="authenticationSuccessHandler"/>
我的问题:
- 高于同提到的两种方法?
- 如果没有,如何通过Spring Configuration XML设置第二种方法 中描述的非活动超时?
- 什么是春季 框架中设置设置会话超时的理想方法?
请说明您是否在使用[Spring Session](http://docs.spring.io/spring-session/docs/current/reference/html5/),标题为您的问题和'spring-session '标签?春季会议有自己的支持配置会议相关方面,你似乎没有使用。 –