Level 104
how can I write activity for this user when session has been expired
You cannot; there is no event associated with an actual PHP Session expiring.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I write kind of activity in DB for my users when they do login or logout so they can have overview about this activities. Problem is how can I write activity for this user when session has been expired? Is there a event where I can listen for?
The example is
Please or to participate in this conversation.