即使可以从请求中获取会话,但似乎在下载InMemorySessionManager中无效。请找到日志:
IllegalStateException: UT000021: Session already invalidated
at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:375)
at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:365)
at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:197)
at org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler.logout(SecurityContextLogoutHandler.java:65)
我们是否可以在Spring SecurityContextLogoutHandler使会话无效之前重新检查下级会话是否无效?我不需要发生这种IllegalStateException。