Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Cart Problem


Guest

Recommended Posts

Posted

hi ive managed to get my SSL to work when a new user creates a new account. However when they add items to their cart and goto the checkout whilst they are logged in, they are redirected back to login page. They can log back in but when they try to goto the checkout they are redirected back to the logon page. Have i missed something in the cookie setup ?

Heres my setup

define('HTTP_SERVER', 'http://custom-pcsystems.com'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://host90.ipowerweb.com/~custom-p/'); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 define('HTTP_COOKIE_DOMAIN', 'custom-pcsystems.com');

 define('HTTPS_COOKIE_DOMAIN', 'custom-pcsystems.com');

 define('HTTP_COOKIE_PATH', '/');

 define('HTTPS_COOKIE_PATH', 'https://host90.ipowerweb.com/~custom-p/');

 define('DIR_WS_HTTP_CATALOG', '/');

 define('DIR_WS_HTTPS_CATALOG', '/');

 

where https://host90.ipowerweb.com/~custom-p/ is the prefix to making a file secure on my site

 

Heres my site try it out www.custom-pcsystems.com/index.php

Posted

yeh i managed to fix it not long after posting this article, my mistake :oops:

 

i changed

define('HTTPS_COOKIE_DOMAIN', 'custom-pcsystems.com');

 

to

define('HTTPS_COOKIE_DOMAIN', 'https://host90.ipowerweb.com/~custom-p/');

& it works perfectly now :)

Posted

In other words your HTTPS_SERVER and HTTPS_COOKIE_DOMAIN exactly match.

 

That seems to be what worked for me as well, excpet I had to make the HTTPS and HTTP lines match as well. In my case they really are in the exact same place so they should match anyway except for the S in HTTPS.

 

I still have a customer now and again who cannot log in though.

No Clue Y.

Archived

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

×
×
  • Create New...