/ Published in: PHP

This is a neat little process for setting a timer and ending a session - change time to reflect minutes for timeout, change redirect to your logout page
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// set timeout period in seconds (600 = 10 minutes) $inactive = 600; // check to see if $_SESSION['timeout'] is set if($session_life > $inactive) }
URL: http://www.daniweb.com/web-development/php/threads/124500/session-time-out-in-php
Comments
