Re: A somewhat unusual session question...

From: Date: Tue, 30 Jul 2002 17:09:09 +0000
Subject: Re: A somewhat unusual session question...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110374@lists.php.net to get a copy of this message
I'm aware that the server cannot "know" whenever a user just quits without logging out, but I was under the impression that the flags session.gc_maxlifetime and session.gc_probability in php.ini would control when and how often "leftover" session files would be removed. If this isn't true, what are these flags actually used for? Pretty confusing if you ask me... /lasso Scott Fletcher wrote:
The session.save_path have nothing to do with it. I have that same problem with the default path, "/tmp" when the session became a garbage collection when the user quit the browser without logging off. When the user quit the browser then there's no way for the server to know that, so the session stuffs stay active in the session.save_path. You will have to either manually clean it up weekly or use crontab to do the clean up for you at night-time with the time-range the website is off-limit to the user. This is where people do the maintaince also.


« previous php.general (#110374) next »