|  | Posted by camilin87 on 01/19/08 23:03 
hello.I'm building a site using php I have a setup.php page wich has at the
 begining session_start();
 and every single page from my site includes setup.php. When a user
 registers I save in $_SESSION["Login"] the userName, so that when !
 isset($_SESSION["Login"]) I can redirect him to the login.php page.
 After some inactivityperiod, e.g. 20 min, I need that user to be
 automatically logged off. Besides I need to keep track of the users
 that are online in that moment, so the logout should run some server-
 side script too. Can anyone give me some ideas??
  Navigation: [Reply to this message] |