Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange Problem


nevmic

Recommended Posts

Posted

I have a very strange without any logic problem.

 

I have a VPS and have an osc shop set-up without problems (shop 1). Then I installed another shop with its own configuration (shop 2).

 

I have Ultimate SEO contribution installed in both shops meaning that most pages are rewritten using htaccess from .php to .html

 

The problem is this.

 

I go to shop 1. Everything is fine.

 

- If I click on any page with .html (rewritten with htaccess) then website works fine.

- If I click on any https pages, website works fine

 

- If I click on any page which ends with .php (example index.php or privacy.php), the categories of shop 1 and changed with categories of shop 2. Products are still of shop 1. If I click on a product page, the categories come back to normal, then I click again on a .php page and categories change to shop 2.

 

Any ideas of what could be wrong?

 

Thanks

Posted

The problem seems to have been solved by changing these:

 

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

define('HTTPS_COOKIE_DOMAIN', 'wws.domain.com');

 

to this:

 

define('HTTP_COOKIE_DOMAIN', 'www.domain.com/');

define('HTTPS_COOKIE_DOMAIN', 'wws.domain.com/');

 

 

I added / at the end

Posted

You did mean to write?

define('HTTPS_COOKIE_DOMAIN', 'www.domain.com/');

and not:

define('HTTPS_COOKIE_DOMAIN', 'wws.domain.com/');

 

and the correct place to put the sforward slash is not there, but in http and https_cookie_path e.g. '/'

 

Vger

Posted
You did mean to write?

define('HTTPS_COOKIE_DOMAIN', 'www.domain.com/');

and not:

define('HTTPS_COOKIE_DOMAIN', 'wws.domain.com/');

 

and the correct place to put the sforward slash is not there, but in http and https_cookie_path e.g. '/'

 

Vger

 

Thanks for your answer. I agree with you on the http_cookie_path .. in fact I have it there as well however for some reason, when I included the slash at the back as indicated above it seemed to do the trick.

 

I am currently installing another shop to further test this issue and will keep you informed.

 

With regards to the other point. I am using 'wws' instead of 'www' to distinguish between the 2 cookies. If I am wrong, please let me know.

Posted
Thanks for your answer. I agree with you on the http_cookie_path .. in fact I have it there as well however for some reason, when I included the slash at the back as indicated above it seemed to do the trick.

 

I am currently installing another shop to further test this issue and will keep you informed.

 

With regards to the other point. I am using 'wws' instead of 'www' to distinguish between the 2 cookies. If I am wrong, please let me know.

Does wws.domain.com get to your website?

Archived

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

×
×
  • Create New...