LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Counting users connected to Apache (https://www.linuxquestions.org/questions/linux-software-2/counting-users-connected-to-apache-269902/)

LuggerHouse 12-24-2004 08:40 AM

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

dizzutch 12-24-2004 09:14 AM

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

LuggerHouse 12-24-2004 09:40 AM

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..

dizzutch 12-24-2004 09:47 AM

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.