title: Destroy all sessions from specific User
body: <p>I'm using Codeigniter 3 for my application and for higher security I want to provide the Users an option to destroy all his sessions.</p>
  
  <p>Why? Because the User could have multiple active sessions when he's logged in on different devices. If one device or Account gets hijacked, the user should have the possibility to destroy all his active sessions and the hijacked account / device is forced to logout by the CI Application.</p>
  
  <p>With Codeigniter and the sess_time_to_update config it is not that easy. Because after specific time, the session will be regeneretad with a new session ID. </p>
  
  <p><a href="https://stackoverflow.com/questions/9563675/destroying-a-specific-session-in-code-igniter">Destroying a specific session in Code Igniter</a> is only the half of the solution, because on session regeneration, the user ID column will not be filled with the user ID.</p>
  
  <p><strong>The objective in short:</strong> 
  CI needs a function to find all sessions based on a user ID or how can we add the User ID to sessions after its automatically being regenerated by sess_time_to_update config</p>
  
  <p>Thank you for your hints and help</p>