Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

session osCsid recreated on every page


Recommended Posts

Hi All,


I have a problem with a ver 2.2 (I beleive) osCommerce application. index.php contains

$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

if this helps.

I received the application as a dump. Everything works except that the session cookie osCsid is recreated for every new page. This means it empties the shopping cart as I leave shopping_cart.php to select a new product, so the webshop is useless. What can be the problem?


Thanx in advance, best regards: Balázs Bámer


Here is a page header from Firebug:

Date Wed, 07 Dec 2011 20:53:36 GMT Server Apache/2.2.17 (Ubuntu) X-Powered-By PHP/5.3.5-1ubuntu7.3 Set-Cookie osCsid=udc0hug333bjlrbogfbh20f721; path=/catalog/; domain=xxx.hu Expires Thu, 19 Nov 1981 08:52:00 GMT Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma no-cache Vary Accept-Encoding Content-Encoding gzip Content-Length 4129 Keep-Alive timeout=15, max=97 Connection Keep-Alive Content-Type text/html


catalog/includes/configure.php contents:



// echo getcwd() . "\n";

// phpinfo();

define('HTTP_SERVER', 'http://xxx.hu:8080/xxx');

define('HTTPS_SERVER', 'http://xxx.hu:8080/xxx');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'xxx.hu');

define('HTTPS_COOKIE_DOMAIN', 'xxx.hu');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');


define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/xxx/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');



define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'xxx');

define('DB_SERVER_PASSWORD', 'xxx');

define('DB_DATABASE', 'xxx');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');


Link to comment
Share on other sites

Link to comment
Share on other sites


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

  • Create New...