Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who's Online Query


warriorwarren

Recommended Posts

Hi,

 

Im struggling to understand when the who's online actually releases the IP of a customer that has moved away from my site.

What I mean by this is that if I open a web brower and navigate to my site, the whos online shows me as present with all the correct details.

I then move away from the website and go somewhere else.

 

What happens then is that the time I last clicked remains constant, my time online increases and it remains like that until I actually drop my internet connection.

I have also seen this with a few customers, they seem to be on the same page for 10-15 mins with no clicks.

 

Is this just how long it takes to update or what?

Link to comment
Share on other sites

Hi,

 

Im struggling to understand when the who's online actually releases the IP of a customer that has moved away from my site.

What I mean by this is that if I open a web brower and navigate to my site, the whos online shows me as present with all the correct details.

I then move away from the website and go somewhere else.

 

What happens then is that the time I last clicked remains constant, my time online increases and it remains like that until I actually drop my internet connection.

I have also seen this with a few customers, they seem to be on the same page for 10-15 mins with no clicks.

 

Is this just how long it takes to update or what?

 

 

It just records the timestamp for the last page visited and when a defined time periode is reached it purges all records older than that time periode.

 

Ie if the time periode is set to 15 min, the last click will show for 15 mins after the last click was actually done and then be erased....

Link to comment
Share on other sites

It just records the timestamp for the last page visited and when a defined time periode is reached it purges all records older than that time periode.

 

Ie if the time periode is set to 15 min, the last click will show for 15 mins after the last click was actually done and then be erased....

 

thanx very much for the reply, answers my questions completly.

 

One more, where do I change the 15mins interval?

Link to comment
Share on other sites

I found the solution if anyone is interested,

 

In admin/who's_online.php locate the code

 

/*

$Id: whos_online.php,v 1.32 2003/06/29 22:50:52 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

$xx_mins_ago = (time() - 900);

 

The value of 900 represents 15 mins, so I changed this to 60 which makes it 1 min.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...