RE: [PHP] anyway to do a 'whos online' from session variable?

From: Date: Wed, 08 Jan 2003 19:25:56 +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-130791@lists.php.net to get a copy of this message
If you use a database for session management you have total control over when and what is garbage collected and therefore extend / delete whatever anytime you want. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: tim@hitcho.com.au > -----Original Message----- > From: Jeff Bluemel [mailto:jeff@domintcom.com] > Sent: Thursday, 9 January 2003 5:24 AM > To: php-general@lists.php.net > Subject: Re: [PHP] anyway to do a 'whos online' from session variable? > > > ok - let me take that a step further - if I store the SID in > the table also are the files in the /tmp directory stored > with the SID? if they are this may be a way I can delete out > inactive session, but be able to allow extended inactive > sessions for users who may be pulling lengthy reports... > > > "Timothy Hitchens )" <phplists@hitcho.com.au> wrote in > message news:007e01c2b6c4$4612d600$0500a8c0@bambino... > > 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 > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#130791) next »