Is it possible to invalidate a spring security session?

后端 未结 4 616
甜味超标
甜味超标 2020-11-30 14:19

I\'m using Tomcat 6.0.32, Spring Security 3.0.5

In my web app some users have the ability to change other users privileges. When this happens I would like to invali

4条回答
  •  一向
    一向 (楼主)
    2020-11-30 14:36

    I believe this is what you need - get a list of logged in users and invalidate the sessions of those you don't need.

    http://static.springsource.org/spring-security/site/docs/3.1.x/reference/session-mgmt.html#list-authenticated-principals

提交回复
热议问题