> Is your session.save_path set to /tmp? It's my understanding that you > should > specify a directory for saving session data -- or use a database -- that > /tmp is subject to garbage collection, and specifying a directory prevents > that. I made this change to a site recently. In tests prior to the change > the session would last up to about 2.5 hours with no activity. After > specifying a directory with session_save_path() right before > session_start(), the session was still OK after almost 4 hours of > inactivity. (Not much of a controlled test, I admit.)
Note that your session files will never be cleaned up if you use session_save_path(), unless you do it yourself. This means that a file will be created each time someone comes to your site and it won't be erased. Only the path specified in php.ini will be cleaned up... which is what you want. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php