How to expire a PHP session after X minutes?


/ Published in: PHP
Save to your folder(s)

The best solution is to implement a session timeout on your own. Use a simple time stamp that denotes the time of the last activity (i.e. request) and update it with every request:

URL: http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.