Kru
6-3-05, 02:42 AM
We are having problems with losing our session when going from a non-ssl page to an ssl page using oscommerce. We also lose our session just being a guest and adding items to the shopping cart. In both instances you can place an item in your cart and then go to check out and it shows that you do not have any items in your cart - sometimes it will even log you out and send you back to the main page as guest but then when you go back to a ssl page (even without logging in) it brings your account info back up and sometimes you have items in your cart and other times there is still nothing in your cart.
Things we have done:
Per powweb we have added our own sessions folder under htdocs plus placed a php.ini file that points to that sessions folder
Per the forums on powweb we have:
1. made sure that the "register_globals = on" in the php.ini file
2. we have made the following changes to the includes/configure.php file
define('HTTP_SERVER', 'http://replacementradios.com');
define('HTTPS_SERVER','https://replacementradioscom.secure.powweb.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'replacementradios.com');
define('HTTPS_COOKIE_DOMAIN','replacementradioscom .secure.powweb.com');
define('HTTP_COOKIE_PATH', '/ecomm/catalog/');
define('HTTPS_COOKIE_PATH', '/ecomm/catalog/');
define('DIR_WS_HTTP_CATALOG', '/ecomm/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/ecomm/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','/www/r/e/replacementradios.com/htdocs/ecomm/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Any thoughts or ideas of what we have missed or something else that we need to change? Thanks in advance for any help.
Things we have done:
Per powweb we have added our own sessions folder under htdocs plus placed a php.ini file that points to that sessions folder
Per the forums on powweb we have:
1. made sure that the "register_globals = on" in the php.ini file
2. we have made the following changes to the includes/configure.php file
define('HTTP_SERVER', 'http://replacementradios.com');
define('HTTPS_SERVER','https://replacementradioscom.secure.powweb.com');
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'replacementradios.com');
define('HTTPS_COOKIE_DOMAIN','replacementradioscom .secure.powweb.com');
define('HTTP_COOKIE_PATH', '/ecomm/catalog/');
define('HTTPS_COOKIE_PATH', '/ecomm/catalog/');
define('DIR_WS_HTTP_CATALOG', '/ecomm/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/ecomm/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','/www/r/e/replacementradios.com/htdocs/ecomm/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Any thoughts or ideas of what we have missed or something else that we need to change? Thanks in advance for any help.