Subdomain CookieCan't login to second store on subdomainLogin Does Not Work Because of Subdomain CookieDev/Staging/Live Cookie Domain For Non-www SitesHow can I set an explicit cookie domain and still loginCookie issue with Internet ExplorerMulti Store Cookie IssueUnable to login in magento admin panel in any browserUsers can' t login at https store because of double frontend cookieMagento 2 Cookie for specific domain without extra dotset-cookie response header on every request causing varnish miss

What does a black-and-white Puerto Rican flag signify?

Can I pay with HKD in Macau or Shenzhen?

Is an easily guessed plot twist a good plot twist?

My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?

"It is what it is" in French

Why do people say "I am broke" instead of "I am broken"?

Dedicated to our #1 Fan

Do I care if the housing market has gone up or down, if I'm moving from one house to another?

Where is this photo of a group of hikers taken? Is it really in the Ural?

Can a creature sustain itself by eating its own severed body parts?

5V/12V load balance of 3.5'' HDD?

Can someone explain the English 'W' sound?

Does Impedance Matching Imply any Practical RF Transmitter Must Waste >=50% of Energy?

How often should alkaline batteries be checked when they are in a device?

Is it OK to accept a job opportunity while planning on not taking it?

Is the apartment I want to rent a scam?

How could Barty Crouch Jr. have run out of Polyjuice Potion at the end of the Goblet of Fire movie?

Are there any English words pronounced with sounds/syllables that aren't part of the spelling?

Adding gears to my grandson's 12" bike

What kind of anatomy does a centaur have?

What gave NASA the confidence for a translunar injection in Apollo 8?

I have a domain, static IP address and many devices I'd like to access outside my house. How do I route them?

Character Arcs - What if the character doesn't overcome the big lie, flaws or wounds?

Why is DC so, so, so Democratic?



Subdomain Cookie


Can't login to second store on subdomainLogin Does Not Work Because of Subdomain CookieDev/Staging/Live Cookie Domain For Non-www SitesHow can I set an explicit cookie domain and still loginCookie issue with Internet ExplorerMulti Store Cookie IssueUnable to login in magento admin panel in any browserUsers can' t login at https store because of double frontend cookieMagento 2 Cookie for specific domain without extra dotset-cookie response header on every request causing varnish miss






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a problem with my subdomain in Magento 2.1.6.



The user session is not kept between websites.



My websites are like this:



  • sub1.market.com

  • sub2.market.com

  • www.market.com

I set the cookie subdomain like this: .market.com



But the session is not kept, I tried to log in www.market.com and when I go to sub1.market.com I am not connected.



I already cleared the cache, flushed the cache, and reindexed. I also cleared the browser cookies. I tried market.com as cookie and / as cookie path and nothing worked.



I need to do this it's a major task, but i'm out of idea. If someone can helpme!



  • Magento 2.1.6

  • Dev on localhost using wamp

  • Php 7

  • change localhost with custom link (www.market.com)

In a previous install it was working, but with this install it don't want to work.



EDIT : I already searched, but every problems is about the multi websites without using www. so cookie domain is not kept. In my case I set a www. domain and try every cookie domain.



EDIT 2 22.06.2017
My cookie pathis empty and my cookie domain is market-eurecia.com But when I go to the cookie with chrome, the path is / and the domain is .market.com










share|improve this question
























  • Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

    – nikola99
    Jun 21 '17 at 21:29











  • When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

    – Nundra
    Jun 22 '17 at 7:23


















0















I have a problem with my subdomain in Magento 2.1.6.



The user session is not kept between websites.



My websites are like this:



  • sub1.market.com

  • sub2.market.com

  • www.market.com

I set the cookie subdomain like this: .market.com



But the session is not kept, I tried to log in www.market.com and when I go to sub1.market.com I am not connected.



I already cleared the cache, flushed the cache, and reindexed. I also cleared the browser cookies. I tried market.com as cookie and / as cookie path and nothing worked.



I need to do this it's a major task, but i'm out of idea. If someone can helpme!



  • Magento 2.1.6

  • Dev on localhost using wamp

  • Php 7

  • change localhost with custom link (www.market.com)

In a previous install it was working, but with this install it don't want to work.



EDIT : I already searched, but every problems is about the multi websites without using www. so cookie domain is not kept. In my case I set a www. domain and try every cookie domain.



EDIT 2 22.06.2017
My cookie pathis empty and my cookie domain is market-eurecia.com But when I go to the cookie with chrome, the path is / and the domain is .market.com










share|improve this question
























  • Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

    – nikola99
    Jun 21 '17 at 21:29











  • When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

    – Nundra
    Jun 22 '17 at 7:23














0












0








0








I have a problem with my subdomain in Magento 2.1.6.



The user session is not kept between websites.



My websites are like this:



  • sub1.market.com

  • sub2.market.com

  • www.market.com

I set the cookie subdomain like this: .market.com



But the session is not kept, I tried to log in www.market.com and when I go to sub1.market.com I am not connected.



I already cleared the cache, flushed the cache, and reindexed. I also cleared the browser cookies. I tried market.com as cookie and / as cookie path and nothing worked.



I need to do this it's a major task, but i'm out of idea. If someone can helpme!



  • Magento 2.1.6

  • Dev on localhost using wamp

  • Php 7

  • change localhost with custom link (www.market.com)

In a previous install it was working, but with this install it don't want to work.



EDIT : I already searched, but every problems is about the multi websites without using www. so cookie domain is not kept. In my case I set a www. domain and try every cookie domain.



EDIT 2 22.06.2017
My cookie pathis empty and my cookie domain is market-eurecia.com But when I go to the cookie with chrome, the path is / and the domain is .market.com










share|improve this question
















I have a problem with my subdomain in Magento 2.1.6.



The user session is not kept between websites.



My websites are like this:



  • sub1.market.com

  • sub2.market.com

  • www.market.com

I set the cookie subdomain like this: .market.com



But the session is not kept, I tried to log in www.market.com and when I go to sub1.market.com I am not connected.



I already cleared the cache, flushed the cache, and reindexed. I also cleared the browser cookies. I tried market.com as cookie and / as cookie path and nothing worked.



I need to do this it's a major task, but i'm out of idea. If someone can helpme!



  • Magento 2.1.6

  • Dev on localhost using wamp

  • Php 7

  • change localhost with custom link (www.market.com)

In a previous install it was working, but with this install it don't want to work.



EDIT : I already searched, but every problems is about the multi websites without using www. so cookie domain is not kept. In my case I set a www. domain and try every cookie domain.



EDIT 2 22.06.2017
My cookie pathis empty and my cookie domain is market-eurecia.com But when I go to the cookie with chrome, the path is / and the domain is .market.com







magento2 cookie multi-website






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 22 '17 at 7:42







Nundra

















asked Jun 21 '17 at 12:34









NundraNundra

981 silver badge11 bronze badges




981 silver badge11 bronze badges












  • Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

    – nikola99
    Jun 21 '17 at 21:29











  • When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

    – Nundra
    Jun 22 '17 at 7:23


















  • Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

    – nikola99
    Jun 21 '17 at 21:29











  • When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

    – Nundra
    Jun 22 '17 at 7:23

















Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

– nikola99
Jun 21 '17 at 21:29





Is the cookie set in the browser when you log in for the correct domain (i.e. .market.com)?

– nikola99
Jun 21 '17 at 21:29













When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

– Nundra
Jun 22 '17 at 7:23






When I go to chrome://settings/cookies there is 4 cookie on market.com PHPSESSID, admin, admin, formkey. The PHPSESSID have path: /, domain : .market.com. Also there is noSID in url i have only the sub1.market.com.

– Nundra
Jun 22 '17 at 7:23











1 Answer
1






active

oldest

votes


















0














I find it !



It was the ... Store - Config - Customer Account sharing from Websites to Global ^_^



I forget there was this option ..






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f180092%2fsubdomain-cookie%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I find it !



    It was the ... Store - Config - Customer Account sharing from Websites to Global ^_^



    I forget there was this option ..






    share|improve this answer



























      0














      I find it !



      It was the ... Store - Config - Customer Account sharing from Websites to Global ^_^



      I forget there was this option ..






      share|improve this answer

























        0












        0








        0







        I find it !



        It was the ... Store - Config - Customer Account sharing from Websites to Global ^_^



        I forget there was this option ..






        share|improve this answer













        I find it !



        It was the ... Store - Config - Customer Account sharing from Websites to Global ^_^



        I forget there was this option ..







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 22 '17 at 8:21









        NundraNundra

        981 silver badge11 bronze badges




        981 silver badge11 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f180092%2fsubdomain-cookie%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Log in Navigation menu

            Invalid response line returned from server: HTTP/2 401 | ErrorPlease Please Help With Error 500 Internal Server Error after upgrading from 1.7 to 1.9Unable to place new customer orders in admin backendMagento - For “Manage Categories” Forbidden You do not have permission to access this documentHTTP ERROR 500 when using require(_once) app/Mage.phpMemcached causing Web Setup Wizard ErrorCould not create an acl object: Invalid XMLAn error occurred on the server. Please try to place the order againInvalid response line returned from server: HTTP/2 200 - message after update to 2.1.7Magento-CE 2.3.0 installation error on XamppMagento 2.2.6- After Migration all default Payment Methods are not working fine