title: Laravel : How to invalidate all sessions of a user from redis and logged out from all devices?
body: <p>An Application using Redis based sessions with Laravel 5.2. </p>
  
  <p>Need to logout user from all devices, for that, using Session::getId() to fetch session id and store into the database against user id. The approach is to destroy all user specific sessions from Redis DB accept current logged-in sessions by storing all user maintained sessions into the database. </p>
  
  <p>When I get session id of a user from Redis-CLI KEY '[value]', the value of the key not matched the id which is fetched by using <code>Session::getId()</code>. For this, couldn't be able to logout user from all devices.</p>
  
  <p>I need to destroy users all sessions from Redis so all logged-in devices will be logged out. </p>
  
  <p>Please help me out how can I destroy user all session from Redis database because <code>Session::getId()</code> value and Redis-CLI Key [value] doesn't match.</p>