Answer the question
In order to leave comments, you need to log in
How to record the session timeout in the database?
There is a need to write down the session break time in the database.
php_value session.gc_maxlifetime - used the setting to live an active session for 30 minutes. That is, if the user is not active for more than 30 minutes, we log him out. Now there is a task to record the logout time in the database. The conditions are tough, even if the user was left without electricity or the computer exploded or he died, the logout time should still be in the database.
From here I need an idea, how can this be done?
Answer the question
In order to leave comments, you need to log in
For each user activity, write the time of death to the database 30 minutes in the future from the current moment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question