Hi Roger, 1. Yes you can set time out for sessions. I hope th below sample example will help you. // Set time out for sessions <?php session_start(); // set timeout period in seconds $inactive = 50; // wait for 50 seconds // check to see if $_SESSION['timeout'] is set if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); header("Location: anyfile.php"); } } $_SESSION['timeout'] = time(); //=============================================== 2. just use the function session_destroy(); to destory the session when the user go to another site. Tanmoy Ghoshal PHP Developer On Tue, Mar 8, 2011 at 12:30 AM, Roger Head <headrog@xxxxxxxxx> wrote: > > > I have two question php sessions; > Can I set it to time out? > and can I distory the sission when the user go to another site? > Roger Head > ________________________________ > (709)726-4323(home) (709)690-9006(cell), (709)729-0481(work) > www.nlscoreboard.com > > [Non-text portions of this message have been removed] > > > -- "I can't understand why people are frightened of new ideas. I'm frightened of the old ones." - John Cage [Non-text portions of this message have been removed] ------------------------------------ Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/jobs/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-objects/join (Yahoo! ID required) <*> To change settings via email: php-objects-digest@xxxxxxxxxxxxxxx php-objects-fullfeatured@xxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/