title: Logout from all devices in java spring
body: <p>I have created a cutom SSO for my web-application using a token to be saved in database. Now I am storing all the tokens as a json for a user, and store that as a cookie. Now I want to implement logout from all devices feature .</p>
  
  <p>How can I approach it? How can I get the particular sessions that are stored in server except the current session ?</p>