Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cookie problem with shared secure server


kdexter

Recommended Posts

I am working on a site that uses a shared secure server and am having a problem getting cookies to function properly. When I force cookie use, there is a problem with the transition from http pages to https pages where the shopping cart contents are dropped (no products in the cart transfer to the https pages). Hence, checkout is not possible. When I go back to http pages, i.e. the catalogue products, the cart contents reappear. They seem to function as two distinct systems. This is also evident in that moving to secure pages after login the logout link is visible and all customer information is available but the logout disappears (as if logged of) when moving back to unsecured pages. The admin console seems to confirm that there are two distinct sessions in that it shows two customers on line when in fact there is only one. The transition from http to https and back is smooth when cookies are not forced, but I would rather use cookies.

 

All of the advice I have found on the forum I have tried with no change. It all seems to point to the configure.php setup so that?s were I focused. This is what my configure.php currently look like:

 

define('HTTP_SERVER', 'http://mysite.com');

define('HTTPS_SERVER', 'https://virt23k.secure-wi.com/mysite.com');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'apparelforge.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '');

 

Any suggestions would be appreciated. Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...