Counting users connected to Apache
Hello Guys,
I've seen other sites displaying how many concurent poeple are looking at their site... How can they know that ?? Any way is a good way for me, any programmation language too (apache API, perl,php etc...). I will be using Apache 2 from now. thanks for helping LuggerHouse |
I'm assuming (without looking into it) that they are setting session variables with PHP for every logged in user, so when a new user logges on, increment the counter and create a new session, and when the user logs the session dies and decrement the counter.
-JSS |
Thanks for replying,
There is a session mechanism to track session in PHP. But unfortunately this machanism is not trackiing when the session ends since the session will continue if the location change. (i.e if you're browsing www.test.com and then change your url to www.test2.com, your session wont change or be closed). thanks.. |
i overlooked that part, sorry, you can make the session variable store the users current location, and check if that includes your site.
|
All times are GMT -5. The time now is 06:24 AM. |