+ 6
[Solved] How to set to expire session automatically in given time , in session creation time?
Php session
4 Réponses
+ 6
I found this on StackOverflow:
if (!isset($_SESSION['CREATED'])){
$_SESSION['CREATED'] = time();
} else if (time()-$_SESSION['CREATED'] > time_in_seconds){
//handle code for what happens
}
https://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes?r=SearchResults
+ 1
https://youtu.be/Wbo7ryb_xl4
https://youtu.be/jNOBDClCxGY
https://youtu.be/LFGL_2ZvKiQ
+ 1
https://code.sololearn.com/wa103a4A1a7A/?ref=app
0
You should implement a session timeout using session.gc_maxlifetime option.