Calculating number of online visitors?
Posted
by Syom
on Stack Overflow
See other posts from Stack Overflow
or by Syom
Published on 2010-06-06T14:44:19Z
Indexed on
2010/06/06
14:52 UTC
Read the original article
Hit count: 108
i need to show the number of online visitors, but there is a problem with selecting algoritm to do it!
maybe i must create a table in DB
, where i'll store ip addresses of visitors and time of visit! by so i can show the count of ip addresses, which's time >= NOW() - 10 minutes, for example...("now()-10 minutes" is just to show the logic, i know that this is not a function:)
is this goog way to go? or maybe it's better to use AJAX methods to store the data?
please give me an idea.
Thanks
© Stack Overflow or respective owner