cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.2 customer sharing issue on multi domain multiwebsites

Magento 1.9.2 customer sharing issue on multi domain multiwebsites


I have a single magento installation with 3 domains(websites) pointing to single magento.

https://www.aaaa.com/

https://www.bbbb.com/

https://www.cccc.com/

In the back-end system > configuration > customer configuration > share customer account > global

I have set the "share customer account" as global I am still not being able to share any logged in user on my websites i.e. if I log in as customer from one site(https://www.aaaa.com/) and then visit the second site(https://www.bbbb.com/) I have to re-login into the second site even when I use SID in the url of the second site

Question: Is there any way to set the user globally logged in to both sites? Or am I missing anything?

We are using cloudflare SSL

1 REPLY

Re: Magento 1.9.2 customer sharing issue on multi domain multiwebsites

Magento doesn't do what you're looking for which is Single Sign on, out of the box. WHen a customer logs in, Magento sets a session cookie for the current domain. For the most part, browsers only allow you to set a cookie for the current domain as a security feature.  That means when you go to the other domain, the cookie is not present, and the customer is not logged in. 

 

The share customer feature is just a backend feature to mean that the customer could log in to any of the websites but not that they stay logged in when moving between domains. 

 

That is a lot more tricky to perform. I don't have any suggestions off the top of my head for that. You'd need to look into how single-sign-on systems are built in general and then replicate that. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!