Arr the garbage collection is based on a probability
(session.gc_probability) and therefore it will clean
up if you get enough hits to the server. Check the documentation for
config of sessions.

I use db for sessions with a check to ensure db is available. (you can
then cleanup whatever you want)



Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, 8 January 2003 1:11 PM
> To: Timothy Hitchens (HiTCHO)
> Cc: 'Jeff Bluemel'; [EMAIL PROTECTED]
> Subject: RE: [PHP] anyway to do a 'whos online' from session variable?
> 
> 
> 
> 
> On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote:
> 
> > Hmm... yes you could create an array of the files then 
> check the last 
> > mod stamp using stat (remember to reset stat).
> > 
> > Sessions are also cleaned up via the garbage collection system 
> > controlled via php.ini
> 
>  How do you force garbage collection? I've written an 
> application using sessions for storage and there's been a 
> session sitting in my /tmp directory for 2 days now, well 
> over the 1440 seconds expiration. 
> 
> Ed
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to