Re: trying to figure out the best/efficient way to tell who is logged into a site..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Close: You mix both of these ideas.

Create a custom session handler. This handler creates user entries in a 
database. Then when you want to know how many are online you do a count on 
the number of user entries in the table. Play around with different 
gc_probability values to tune the efficiency.



On 9/13/05, bruce <bedouglas@xxxxxxxxxxxxx> wrote:
> 
> hi...
> 
> anybody have pointers to trying to tell who/how long someone is logged 
> into
> a system/site. i've thought about setting a session var, but i'm not sure
> how to read/tabulate this var across the entire group of people who'd be
> logged in. i've also thought about keeping track in a db tbl.. however, 
> i'm
> still not sure that i've got a good way of tracking who's logged in, and
> still on...
> 
> a possible approach would be to have the app periodically update the 
> system
> whenever a logged in user goes from page to page...
> 
> so, any thoughts/ideas/etc...
> 
> -thanks
> 
> bruce
> bedouglas@xxxxxxxxxxxxx
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux