Spring not restoring tomcat persistent sessions to session registry after restart?

后端 未结 2 1770
耶瑟儿~
耶瑟儿~ 2021-01-01 05:44

I\'m using Tomcat 6.2 and Spring MVC 2.5. I\'ve noticed that, whilst a user is logged in I can restart Tomcat and the user is able to continue browsing without re-authentica

相关标签:
2条回答
  • 2021-01-01 06:10

    Are the objects, you want persisted and then restored from the session, serializable?

    0 讨论(0)
  • 2021-01-01 06:25

    Try this configuration:

    <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
        ...
        <property name="alwaysReauthenticate" value="true"/>
    </bean>
    
    0 讨论(0)
提交回复
热议问题