how to detect online visitors and members??

Reply

Join Date: Mar 2008
Posts: 12
Reputation: quecoder is an unknown quantity at this point 
Solved Threads: 0
quecoder quecoder is offline Offline
Newbie Poster

how to detect online visitors and members??

 
0
  #1
Sep 12th, 2008
At any forum , you can see if a specific member is online or offline, or generally , how can I detect online visitors accurately who are visiting my website at the moment ...

Thanks in advance
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 436
Reputation: Atli is on a distinguished road 
Solved Threads: 56
Atli's Avatar
Atli Atli is offline Offline
Posting Pro in Training

Re: how to detect online visitors and members??

 
0
  #2
Sep 12th, 2008
That is typically done by logging the time when a given user (or a guest, if you want that) was last seen.
Once a user hasn't been seen for some predetermined amount of time, he is considered off line.

This is really the only reliable method, given the stateless nature of the web.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 246
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 19
samarudge samarudge is offline Offline
Posting Whiz in Training

Re: how to detect online visitors and members??

 
0
  #3
Sep 15th, 2008
Have a look at http://www.hscripts.com/scripts/php/usersOnline.php and play about with that code.
Regards,
Sam Rudge
My Blog, Life and everything that matters to me - SamRudge.co.uk

2x Macbook Pro's, 1x Mac Pro, 1x iMac, 2x Macbook's running Fedora linux - In conclusion, I hate windows =)
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 84
Reputation: MVied is an unknown quantity at this point 
Solved Threads: 5
MVied's Avatar
MVied MVied is offline Offline
Junior Poster in Training

Re: how to detect online visitors and members??

 
0
  #4
Sep 15th, 2008
Originally Posted by samarudge View Post
Have a look at http://www.hscripts.com/scripts/php/usersOnline.php and play about with that code.
Regards,
Sam Rudge
This was actually the script I was going to suggest. You could implement it with your current system and possibly identify the IP addresses by the IP addresses your users logged in with. Just a thought.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC