Hi,

This is a request for advice on how to solve the following problem.

I have installed secure pages and secured all the pages I need for ubercart, I can add a product to the cart but when I press checkout it redirects me to a secure checkout but displays a message there are no products in the cart. It seems that the information from the unsecure cart is not being passed to the secure cart. I can see why this might be happening as you can see from my setup the secure domain and certificate are on a subdomain on different IP address I'm just note sure how to resolve it.

Domain IP Address
http://www.mydomain.com xx.xx.xx.01
http://secure.mydomain.com xx.xx.xx.02

Any help would be appreciated.

Dan

Comments

grendzy’s picture

have you set $cookie_domain in settings.php? Does the problem occur if you disable the securepages module?

danharper’s picture

I haven't set the cookie donain in settings PHP which domain should I set this to the secure or non secure one?

This problem only occurs with securepages because I have set cart/checkout to be secure so when you are in http://www.mydomain.com/cart and press checkout it redirects you to https://secure.mydomain.com/cart/checkout. So I just get sorry your cart is empty because each domain is on a different IP address. (I think that's the problem)

Cheers Dan

grendzy’s picture

You need to set $cookie_domain to "mydomain.com", so the session cookie can be shared between hosts.

danharper’s picture

This did not resolve the issue you can see what I mean if you use the site, follow the link add the product to the cart and then try checkout.

http://www.innserveltd.co.uk/shop/innenergy-device

It's really annoying because it all worked on my old host where the SSL cert was hosted at the same IP address and domain name.

Thanks Dan

danharper’s picture

Status: Active » Fixed

Changing the cookie domain worked, I changed it yesterday and uploaded it but didn't noticed it failed on the client because setting.php was protected doh.

Thanks for your help Dan

grendzy’s picture

Glad to hear it worked, thanks for following up!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.