Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A bug? Or not?


hongbiaoke

Recommended Posts

I was testing the catalog using a test customer. When I logged in as a customer, I am surfing the catalog in secure mode (SSL), but when I clicked on "cart" or "shopping cart" (it is empty), I am not in secure mode. Then I click on "account", I have to relogin. The next time I tried this: I logged in, I am in secure mode. I click a product and add it to my shopping cart, as soon as I click the product, I am out of secure mode, I click on "add to cart", I am still in unsecure mode. But the "log out" link is still there. Then I click on "account", I am back at the "login screen", but the "log out " link is not there and the "log in" link is there. After I log in again, the product that I added to my shopping cart is there. Is this a bug or did I mess up the scipts or it is a cookie problem? I am a novice at this so please go easy on me. Thank you! I currently use osCommerce 2.2-MS2 and PHP v4.3.0

Link to comment
Share on other sites

Probably not a bug in osCommerce, more likely a bug in your SSL setup. Are you using shared ssl (ie, securesite.yourhost.com/yoursite/) or your own ssl certificate (https://yoursite.com)?

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Link to comment
Share on other sites

Post these lines from your catalog/includes/configure.php

 

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

define('HTTPS_SERVER', 'https://www.mydomain.com');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTP_COOKIE_PATH', 'catalog');

define('HTTPS_COOKIE_PATH', 'catalog');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...