RE: [PHP] anyway to do a 'whos online' from session variable?
| From: | Timothy Hitchens \(HiTCHO\) | Date: | Wed, 08 Jan 2003 03:16:02 +0000 |
| Subject: | RE: [PHP] anyway to do a 'whos online' from session variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130687@lists.php.net to get a copy of this message | ||
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: tim@hitcho.com.au
> -----Original Message-----
> From: ed@home.homes2see.com [mailto:ed@home.homes2see.com]
> Sent: Wednesday, 8 January 2003 1:11 PM
> To: Timothy Hitchens (HiTCHO)
> Cc: 'Jeff Bluemel'; php-general@lists.php.net
> 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
>