Re: Active PHP Sessions
| From: | Torsten Roehr | Date: | Fri, 07 May 2004 13:30:29 +0000 |
| Subject: | Re: Active PHP Sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185613@lists.php.net to get a copy of this message | ||
"Paul Higgins" <developer_paul_php@hotmail.com> wrote in message
news:BAY13-F73ib4g3Sv0YK000050ec@hotmail.com...
> 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/dire
ct/01/