Jump to content

Ssl Strange Behavior


Recommended Posts

OK here is a strange one when I change to SSL on my shop I get a stange behavior in the log in and log out feature.

Here is what happens, I go to my shop and the url is http:// myshop.com/myshop all is ok.

Then I click log on and the site switches to https://myshop.ipage.com/myshop which is correct for my shared SSL.

As soon as I click on catogories to add products to my cart I am back to http://myshop.com/myshop and the top account area shows Welcome, log in if I click log in it switches to account info and shows me as loged in.

When I click logout it logs out, As soon as I click log in I am switched again to my account and shown as logged in, as if I never logged out.

If I add products to the cart and then log in it shows no products in cart.

 

I then added the .ipage. part to the shop domain url and log on to shop and it shows https://myshop

and I can log in and out ok add products to cart ok .

However when I go to catogories to add products the domain chnages to http://myshop.ipage.com/myshop which is incorrect as it should be https:// when the .ipage. is added.

with the address configured this way if I add products to cart and then log in the products stay in cart.

 

Any thoughts.

I hope I explained this good enough to understand if anyone wants to see I can post the url I am working on this shop so it is not open to public yet, I would like to work out all the bugs first.

Link to comment
Share on other sites

prestashop only displays certain pages securely, that is the authentication pages, checkout, my account etc... adding products to the cart is not a page that requires SSL, since there is not an exchange of secure information.

 

so the issue you are having is that when you login, you are navigating to a different domain ipage.com, and prestashop is creating a secure cookie under that domain. then when you add a product to the cart, you are navigating back to myshop.com, a completely different domain, and therefore a new cookie.

 

I'm not sure you should use a shared SSL, if it is your only option, then you may need to make some customizations to ensure your entire site is under SSL, and therefore under the domain ipage.com

Link to comment
Share on other sites

I agree after posting this late last night I realized the problem was the switch between.ipage.com and .com.

I was actaully causing prestashop to see two different domains, Is there a way to have the entire shop under the https.mypage.ipage.com./mypage rather then switching between the domains.

Is there a way to change the base url so that the entire shop is under the https://.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...