Reply to RE: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

Your name:

Reply:


Posted by Philip Hallstrom on 09/14/05 01:43

> any code/pointers to this...
>
> i've been doing the google/search thing and haven't come across anything
> which relates to what i'm searching for...
>
> so.. any help in this area would be greatly appreciated!!
>
> i would have thought there would be articles/open course code/apps on this!!
>
> -thanks
>
> bruce

http://www.php.net/manual/en/function.session-set-save-handler.php

Also try zend.com in the tips/articles/code-snippets section.

>
>
> -----Original Message-----
> From: Jason Barnett [mailto:juzamjedi@gmail.com]
> Sent: Tuesday, September 13, 2005 2:25 PM
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] trying to figure out the best/efficient way to tell
> who is logged into a site..
>
>
> 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@earthlink.net> 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@earthlink.net
>>
>> --
>> 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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация