1. Home
  2. Docs
  3. Website Firewall
  4. Troubleshooting
  5. osCommerce Who’s Online

osCommerce Who’s Online

If your OSCommerce reports show that all of your users have the same IP address, and you don\’t have access to your webserver to change the configuration as we describe here, you can still correct this. To do so, edit the following file:

includes/functions/whos_online.php

Change this code :

$wo_session_id = tep_session_id();
$wo_ip_address = getenv('REMOTE_ADDR');
$wo_last_page_url = getenv('REQUEST_URI');

To do this:

$wo_session_id = tep_session_id();
$wo_ip_address = getenv('REMOTE_ADDR');
if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{ $wo_ip_address = $_SERVER['HTTP_X_SUCURI_CLIENTIP']; }
$wo_last_page_url = getenv('REQUEST_URI');
Was this article helpful to you?