Level 75
If you don't want users to stay logged in, disable the remember me feature. And I wouldn't worry about deleting the session, just let it expire.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Can we just delete a session row in the database to invalidate a session or is there any reason why this should not be done ?
Please or to participate in this conversation.