Re: Session variables
| From: | Richard Lynch | Date: | Sun, 09 Sep 2001 00:40:17 +0000 |
| Subject: | Re: Session variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66568@lists.php.net to get a copy of this message | ||
You'll have to define what you mean by "currently online".
Do you mean actually waiting this moment for HTML to finish streaming to
their browser?
Or do you just mean, in my session files and not timed out yet?
Probably the easiest way to do that would be to use
http://php.net/session-set-save-handler
You could wrap some book-keeping around PHP's internal FILE sessions, or
store them in MySQL and then your simply need to query how many rows there
are in the table.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Ing. Lalka Peter <lalkap@emo.seas.sk>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Friday, September 07, 2001 3:22 AM
Subject: Session variables
> Hi!
> I want to know how many users are currently online at my site.
> How can I get this info from php? Can I?
> Thank you for answer.
> Barno
>