Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shan2590's avatar

How to update DB recorde before login session destroy?

User cannot log in to the same application using two browsers. Once user login to the application. I keep a record inside the DB user table (curr_loggedinstatus = 1) to identify this user already login. if browser cache clear or session time out user automatically sign out, But how can I update curr_loggedinstatus to 0 before session destroy?,

0 likes
1 reply

Please or to participate in this conversation.