I am a beginner to magento and I have created a magento 2 multi-website and the URL looks like and

On these websites, while I have logged into site, It will show the currently logged in username and compare products in the header link that's fine.

But in another tab I have logged into site, It also keeps the first site logged-in username and compare products data.

Similarly if logged into first means, this login username and compare products will be shown on another website( also.

And I have set 'No' to share the customer between websites in configuration. If I was removed the browser cache and session means, It will be showing correctly.

Thanks in advance.


1 Answer 1


You need to have different domains URL for cookie storage related to session.

Such as



  • http://firstdomain.test/testproject/
  • http://seconddomain.test/testproject/
  • Thanks for your answer. But in magento 2 we have the option to create multiple websites within the same domain. right?
    – Ramya
    Nov 9, 2018 at 13:05
  • I do not think so, but I may be wrong. Nov 12, 2018 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.