Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared SSL and Empty Cart


mjump

Recommended Posts

Posted

I am trying to configure several new sites that are hosted on hostgator and use a shared SSL.

 

It seems that when a user enters the site and places an order it adds the order to the cart fine. When they go to check out, it goes to the "secure" login page and after logging in just fine, the cart is empty.

 

On one site I reconfigured the configure.php file so the entire site is "secure" and that works fine, but am curious where the items put in the basket under the non-secure are gone when going past the login process.

 

any ideas? Below is the "guts" of the config file"

  define('HTTP_SERVER', 'http://doctors-scales.com');
 define('HTTPS_SERVER', 'https://secure235.websitewelcome.com/~doctors');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'doctors-scales.com');
 define('HTTPS_COOKIE_DOMAIN', 'doctors-scales.com');
 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', '/home/doctors/public_html/catalog/');

Posted

OK.. finally found my own answer from an earlier post by vigar:

----

In your includes/configure.php file your https_cookie_domain should read:

secure2.dnsvelocity.com/~umemcfgj

 

Your https_cookie_path should read:

/catalog/

 

Vger

 

------

Posted
OK.. finally found my own answer from an earlier post by vigar:

----

In your includes/configure.php file your https_cookie_domain should read:

secure2.dnsvelocity.com/~umemcfgj

 

Your https_cookie_path should read:

/catalog/

 

Vger

 

------

 

 

This works.

 

If it doesn't the first time, recheck your configuration. It didn't for me about 20 times, but for some reason does now! God knows...

 

But you will have to set "Force cookies" to false. You can find this in the osCommerce admin area.

osCommerce is GREAT. When it works...

Archived

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

×
×
  • Create New...