LordWoody Posted March 22, 2004 Share Posted March 22, 2004 I am setting up osCommerce on a shared server with sessions stored in mysql. The server URL is something like http://mydomain.com/ while the SSL version of the store is https://mydomain.hostcompanydomain.com/ What i have noticed is that when passing the osCsid back and forth is that it only works sometimes (URL based passing) when moving SSL to nonSSL. Going nonSSL to SSL results in a new session or resumption of the http based session separate of the https session (no osCsid in the URL) and loss of the cart and login data. Any ideas of what might be wrong? Running osCommerce 2.2-MS2 on Apache 1.3.29 and PHP 4.3.4. The test browser is Mozilla 1.4 and 1.6. Thanks in advance, Woody <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mydomain.com'); define('HTTPS_SERVER', 'https://mydomain.hostcomapnydomain.com'); define('ENABLE_SSL', 1); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'mysql.hostcomapnydomain.com'); define('DB_SERVER_USERNAME', 'my_username'); define('DB_SERVER_PASSWORD', 'my_password'); define('DB_DATABASE', 'my_database'); define('CONFIGURE_STATUS_COMPLETED', 1); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2004 Share Posted March 29, 2004 Did you ever get a response? I'm having a similar issue! Link to comment Share on other sites More sharing options...
stevel Posted March 30, 2004 Share Posted March 30, 2004 You need: define('HTTP_COOKIE_DOMAIN', 'mydomain.com'); define('HTTPS_COOKIE_DOMAIN', 'mydomain.hostcompanydomain.com'); Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.