Re: SESSIONS: Why does PHP not erase session files in /TMP

From: Date: Thu, 10 May 2001 14:07:15 +0000
Subject: Re: SESSIONS: Why does PHP not erase session files in /TMP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52282@lists.php.net to get a copy of this message
This has to do with session garbage collection. Check the "session.gc_probability" option in your php.ini. I suspect the default value of 1 means 1% chance of a collection on each session start. Changing it to 100 did the trick for me. But do consider whether you really *want* to do garbage collection every time a session starts. Lower values should work as well, just with a little delay. Regards, Jakob Kruse ""Davor Pleskina"" <davor.pleskina@vip.hr> wrote in message news:9ddf72$j2t$1@toye.p.sourceforge.net... > I have /TMP configured as tmp dir for session files. > > However, each time I try my program there is a new file; not one is being > removed, either. > > How to tell PHP to remove session files when they are not needed any more? > > TIA, > Davor

« previous php.general (#52282) next »