Quantcast
Channel: User andrewsi - Stack Overflow
Viewing all articles
Browse latest Browse all 51

Answer by andrewsi for How to set maximum life of the session to be 5 sec in PHP

$
0
0

Include a timestamp attribute of the $_SESSION variable. Check it periodically and expire the session according to a conditional:

$_SESSION['mytimestamp'] = time();

Viewing all articles
Browse latest Browse all 51

Trending Articles