Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cart Content Lost When Proceeding To Secure Server


Ninalune

Recommended Posts

Posted

I had to update secure URLs after installation. I changed a line in each includes/configure.php and admin/includes/configure.php.

 

Now the secure part works. Except that all cart content remains on unsecure server. Each time I proceed to checkout, I see an empty cart. I go back to product page (it is in unsecure area), add it again, now there are two products in my cart. I go to check out - and there is nothing again.

 

I don't know it it matters, I use shared SSL, so the secyre URL is different than my domain.

 

I tried to login as a customer first and start shopping after that. Once I move from secure server to unsecure (to add a product), I lose my log in. When I log in, I use my product.

 

A connection is missing somewhere. What should I do?

Posted

Dedicated or shared SSL is not relevant to this problem. One of the reason you lost the shopping basket contents is wrong cookie path setting for https.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

can You chek if oscid are getting changed.

 

Also chek is shared SSL dont set force cookies to true.

 

 

Satish Mantri

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Can I just say that I am getting EXACTLY the same problem. 'dual carts' If the answer is cookies, can someone please give an example of a working config file? Cheers!

Posted

It worked! Thanks.

 

Can I just say that I am getting EXACTLY the same problem. 'dual carts' If the answer is cookies, can someone please give an example of a working config file? Cheers!

 

There is a line in includes/configure.php that looks like this:

 

define('HTTPS_COOKIE_DOMAIN', 'yoursecureserver.com');

 

Insert your secure server name, it should work.

Posted

CURRENTLY DANCING AROUND THE ROOM SHOUTING FOR JOY!!!!!!

You are all wonderful!!! It works! I think I have something to contribute here:

This WORKS for a shared SSL server using the same directory store as the HTTP server:

 

define('HTTP_SERVER', 'http://domain.co.uk');

define('HTTPS_SERVER', 'https://secure.hosts.co.uk/~domain.co.uk');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'domain.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'secure.hosts.co.uk/~domain.co.uk');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

All I can say is that EVERYTHING is sensitive. no trailing slashes, no www or https or http in the cookie domain definitions. It's really tough because there's no feedback, but if you are having difficulty, use this model, it works.

 

thank you all again for your support.

Posted
CURRENTLY DANCING AROUND THE ROOM SHOUTING FOR JOY!!!!!!

You are all wonderful!!! It works! I think I have something to contribute here:

 

Erm, did I say I'd fixed it. I'm afrtaid it appeared to work a little, but stopped again. I am now utterly confused. I have a query with the hosting company. One thing I have noticed is that the DOCUMENT_ROOT for the https and http servers is different. i.e a simple test script shows this:

 

HTTP ROOT: /content/StartupHostPlus/p/o/www.mydomain.co.uk/web

HTTPS ROOT: /content/namesco/default.names.co.uk/web

 

This however is only set once in teh config file, and does nto appear to make any difference.

 

there is only one other oddity, and that is that the https server seems to be looking for an extra slash all the time? could this be related? I have no clue! I think I need to jump ship regarding hosting outfits, this has taken me too long and I'm losing hair now! Many thanks!

Archived

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

×
×
  • Create New...