Subdomain Cookie












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
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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

98110




98110





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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

        98110




        98110






























            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

            What other Star Trek series did the main TNG cast show up in?

            Berlina muro

            Berlina aerponto