how to log a user out programmatically using spring security

后端 未结 2 599
花落未央
花落未央 2020-12-28 10:48

i am using spring security v3.1.4. what i want to achieve is to have an admin be able to log out a regular user (invalidate his session). a user can only log in once at any

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 11:19

    All you need is modify equals() and hashCode(). Your code will run later on. This could be helpful: http://blog.trifork.com/2014/02/28/session-timeout-and-concurrent-session-control-with-spring-security-and-spring-mvc/

提交回复
热议问题