Subdomain CookieWhy this complex logic for cookie domain in session start?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 dot

When traveling to Europe from North America, do I need to purchase a different power strip?

weren't playing vs didn't play

Does this video of collapsing warehouse shelves show a real incident?

Counting all the hearts

Do items de-spawn in Diablo?

Are babies of evil humanoid species inherently evil?

Meaning of ちはース as an exclamation

Are tamper resistant receptacles really safer?

How can I get players to stop ignoring or overlooking the plot hooks I'm giving them?

What's the "normal" opposite of flautando?

How did Alan Turing break the enigma code using the hint given by the lady in the bar?

An alternative proof of an application of Hahn-Banach

Accountant/ lawyer will not return my call

Accepted offer letter, position changed

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Distinction between apt-cache and dpkg -l

What Happens when Passenger Refuses to Fly Boeing 737 Max?

How are showroom/display vehicles prepared?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

How strictly should I take "Candidates must be local"?

Signed and unsigned numbers

Database Backup for data and log files

Should I tell my boss the work he did was worthless

Why does liquid water form when we exhale on a mirror?



Subdomain Cookie


Why this complex logic for cookie domain in session start?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 dot













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 2 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 2 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 2 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 2 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

            Nidaros erkebispedøme

            Birsay

            Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...