0

I am a beginner to magento and I have created a magento 2 multi-website and the URL looks like http://127.0.0.1/testproject/ and http://127.0.0.1/testproject/test.

On these websites, while I have logged into http://127.0.0.1/testproject/ 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 http://127.0.0.1/testproject/test site, It also keeps the first site logged-in username and compare products data.

Similarly if logged into http://127.0.0.1/testproject/test first means, this login username and compare products will be shown on another website(http://127.0.0.1/testproject/) 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.

surbhi agr
9066 silver badges23 bronze badges
asked Nov 2, 2018 at 4:53
0

1 Answer 1

0

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

Such as

  • http://127.0.0.1/testproject1/
  • http://127.0.0.1/testproject2/

OR

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.