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
Comment #1
grendzy commentedhave you set $cookie_domain in settings.php? Does the problem occur if you disable the securepages module?
Comment #2
danharper commentedI 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
Comment #3
grendzy commentedYou need to set $cookie_domain to "mydomain.com", so the session cookie can be shared between hosts.
Comment #4
danharper commentedThis 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
Comment #5
danharper commentedChanging 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
Comment #6
grendzy commentedGlad to hear it worked, thanks for following up!