Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sessions work on FreeBSD, but not Windows!


Kenja

Recommended Posts

Posted

I've set up a development environment on my local windows machine and have the live site on a FreeBSD server. When I log into an account on my windows server it takes me to the account screen, but then on the next click it forgets that I'm logged in. It works on the Free BSD server without any issues.

 

My config.php files specify mysql as the session storage location. I'm using a default installation of XAMPP and I verified that "register globals" is on. Has anyone else experienced this?

 

I've tried googling for others with this problem, but I'm having a hard time coming up with search terms for what I'm looking for.

 

Thanks!

Kenja

Posted

Just in case, here is the top part of my config.php for my windows machine:

 

define('HTTP_SERVER', 'http://localhost/mysite');

define('HTTPS_SERVER', 'https://localhost/mysite');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', 'localhost/mysite');

define('HTTPS_COOKIE_DOMAIN', 'localhost/mysite');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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', 'c:/program files/xampp/htdocs/mysite/');

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

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

//Edited out my DB login info...

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Archived

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

×
×
  • Create New...