【问题标题】:Is there a way to keep track on user's sessions within applications in the same tomcat?有没有办法在同一个 tomcat 中的应用程序中跟踪用户的会话?
【发布时间】:2016-08-27 06:05:07
【问题描述】:

我在同一个 Tomcat 应用服务器上部署了多个应用程序(战争)。每个应用程序都有表单登录并使用 Spring Security 进行身份验证。有一个集中式应用程序(不在同一个 Tomcat 中),Spring Security 从中检查用户凭据。

是否有一种简单的方法可以跟踪用户在这些战争中的会话,并在每次战争中使用户的会话无效,以防用户从其中注销?

【问题讨论】:

标签: tomcat spring-security httpsession


【解决方案1】:

我开始使用Spring Session。它与 Spring Security 集成,并提供了一种将用户会话存储到数据库的方法。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-21
    • 2022-12-03
    • 2010-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多