Hi all. I’m currently using session authentication and want to log out my authenticated users after X number of minutes.
Is there a way to auto logout a specific user?
I can maybe save the session id, if there is, in the database and add expiration time then create a cron job though I have no idea, and I can’t see it in the documentation, on how to get the session id and log out that session by id?
Is there a way to do this? Any help would be much appreciated.