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.
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.
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.
Destroying a specific session in Code Igniter is only the half of the solution, because on session regeneration, the user ID column will not be filled with the user ID.
The objective in short: 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
Thank you for your hints and help