Destroy a session of another user in spring

前端 未结 4 1437
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-11 16:45

In my application, I have an admin that can delete users. so when I delete a user from the admin session I want that the deleted user should get logged out automatically. I

4条回答
  •  清歌不尽
    2020-12-11 17:12

    Along with what has been suggested by @LaurentG, following needs to be added in your spring config file :

    
        
    
    

    for it to work. Also @zygimantus answer can be used for accessing the session data.

提交回复
热议问题