即使可以从请求中获取会话,但在undertow的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使会话无效之前重新检查underwow会话是否无效?我需要不发生此IllegalStateException。
有人解决了吗?我也有同样的问题