Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping Cart empties going to secure mode


Guest

Recommended Posts

I put an item in the cart and click on checkout...but when I reach the login screen, the cart shows that it's empty. What could be happening when it bumps into secure mode that it's losing the contents of the cart?

 

The cart worked perfectly until this past weekend, I hadn't modified anything on the server but I believe there was some sort of server upgrade done. So far I am mystified...

Link to comment
Share on other sites

What force cookie use if its set to true doesn't append the session id in the URL, but it is maintained by use of cookies.

What are your settings for cookies in catalog/includes/configure.php ?

Maybe post a URL for what is happening as well as your configure.php and we can look into the problem with more detail.

Link to comment
Share on other sites

Same problem.

 

Example (not real links)

http://www.myurl.com/catalog/ is the unsecure site

http://secure.myurl.com/myurl/catalog/ is the secure site

 

I have a feeling it has something to do with that extra directory name in there.

 

Settings:

 

  define('HTTP_SERVER', 'http://www.myurl.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://secure.myurl.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.myurl.com');
 define('HTTPS_COOKIE_DOMAIN', 'secure.myurl.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/myurl/catalog/');

 

I have also tried every variation of the above and:

  define('HTTP_COOKIE_DOMAIN', '.myurl.com');
 define('HTTPS_COOKIE_DOMAIN', '.myurl.com');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');

 

Nothing seems to do it

Link to comment
Share on other sites

Found out what I did wrong... The following settings work (in my case):

 

 ?define('HTTP_COOKIE_DOMAIN', '.myurl.com');
?define('HTTPS_COOKIE_DOMAIN', '.myurl.com'); ?
?define('HTTP_COOKIE_PATH', '/');
?define('HTTPS_COOKIE_PATH', '/');

 

With force cookies on.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...