【发布时间】:2014-06-16 23:27:57
【问题描述】:
我有一个 tomcat 8 服务器,其中有两个 Web 应用程序。我想通过对用户进行身份验证来授予对这两个应用程序的访问权限。
我通过在 catalina/conf/context.xml 中设置 sessionCookiePath="/" 来做到这一点:
<Context useHttpOnly="false" sessionCookiePath="/">
现在我面临的问题是 tomcat 不再更改会话 ID。我收到一条警告消息。
Warn org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy - your servlet container did not change the session id when a new session was created
在链接上,据说tomcat默认会处理这个问题。 http://www.tomcatexpert.com/blog/2011/04/25/session-fixation-protection
我该如何解决?
谢谢
【问题讨论】:
标签: spring security tomcat session-cookies