You are here: Re: counting users « PHP SQL « IT news, forums, messages
Re: counting users

Posted by J.O. Aho on 10/14/11 11:32

Bruintje Beer wrote:
> Hi,
>
> Does somebody know how to count all active users in php logged in on your
> website. How do you catch when a user leaves yur site and decrement the
> login count.

You store the "sessions" used in some kind of "database" with the "time", each
time someone access a page, the "time" is updated, check the "database" and
see how many has been updated the last X minutes and there you get how many
are active.

You never really can do any exact measurement.


//Aho

 

Navigation:

[Reply to this 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

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