"Paul Higgins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've read stuff like that also. However, if I choose to do this, I must > write all the session handling myself, correct? Are there any scripts > already out there that do this?
I'm using PEAR's HTTP_Session in combination with PEAR::DB: http://pear.php.net/package/HTTP_Session http://pear.php.net/package/DB Although HTTP_Session is still in beta state I haven't experienced any problems yet. Unfortunately there is no documention yet but if you have any questions to get started just post on the PEAR mailing list. The session table has a timestamp column named expiry which will make it easy to count the active sessions. By the way, doing the DB session count should also be faster than counting the files in your /tmp dir ;) Regards, Torsten > > Thanks > > > >From: "Torsten Roehr" <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: [PHP] Re: Active PHP Sessions > >Date: Fri, 7 May 2004 15:30:29 +0200 > > > >"Paul Higgins" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > > > Hi all, > > > > > > I'm on a shared server, and I do not believe that I have access to the > >/tmp > > > directory where the session files are stored (I believe that is how it > >works > > > :). I want to keep track of which sessions are active. Basically, I > >just > > > want a list of the active sessions for my site. > > > > > > How can I do this? > > > >If you use a database as container for your session data you could easily > >do > >a SELECT COUNT(*) FROM sessions to get the number of the sessions. Using a > >DB as session container is also more secure on a shared server (at least > >that's what I often read about session security). > > > >Regards, Torsten > > > > > > > > Thanks! > > > > > > _________________________________________________________________ > > > Watch LIVE baseball games on your computer with MLB.TV, included with > >MSN > > > Premium! > > > > >http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/dir e > >ct/01/ > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar – get it now! > http://toolbar.msn.com/go/onm00200415ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php