LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-24-2004, 09:40 AM   #1
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 208

Rep: Reputation: 30
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
 
Old 12-24-2004, 10:14 AM   #2
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
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
 
Old 12-24-2004, 10:40 AM   #3
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 208

Original Poster
Rep: Reputation: 30
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..
 
Old 12-24-2004, 10:47 AM   #4
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
i overlooked that part, sorry, you can make the session variable store the users current location, and check if that includes your site.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I find connected users? adham1sa Linux - Networking 6 09-11-2009 04:44 PM
Kick existing connected users loadedmind Linux - Security 4 07-26-2005 08:55 AM
Apache: How to know how many clients are connected? Nerox Linux - Software 13 07-25-2004 10:07 AM
find out which users are connected??? lemay_jeff Linux - Newbie 2 06-15-2004 11:14 AM
win98se and redhat 53 users connected? robert_edwards Linux - Networking 1 05-04-2004 10:11 PM


All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration