Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Added SSL and now cookies are blocked by firewalls


WS Evolution

Recommended Posts

I have upgraded my hosting package to SSL and updated the shop top use SSL. Since then the number of orders have fallen by about 80%. What I found was that allot of people where having problems with cookies (They where all being directed to the Cookie Usage page). I have also found that if all pages are set as SSL the cookie usage problem does not occur, but as the SSL pages are slower this is not the best solution. I guessed this was an issue with the config file, but after trying many different combinations nothing seems to work. Any ideas on how to resolve this issue.

 

old config:

 

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

 

also tried:

 

 

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

 

Please Help.

 

Thanks, Gareth.

Link to comment
Share on other sites

Try this:

  define('HTTP_COOKIE_DOMAIN', 'mydomainname.com');
 define('HTTPS_COOKIE_DOMAIN', 'mydomainname.com');

 

or this

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');

Link to comment
Share on other sites

Try this:

  define('HTTP_COOKIE_DOMAIN', 'mydomainname.com');
 define('HTTPS_COOKIE_DOMAIN', 'mydomainname.com');

 

or this

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');

 

 

  define('HTTP_COOKIE_DOMAIN', 'mydomainname.com');
 define('HTTPS_COOKIE_DOMAIN', 'mydomainname.com');

 

Worked :)

 

I am sure I had tried that or maybe I included the www. :-"

 

Thank You.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...