IE mode cookie

가영 김 186 Reputation points
2021-10-28T07:14:10.47+00:00

Hello, I am currently working on sharing cookies in IE mode at Edge.

I worked from Micro Edge, a document provided by MicroSoft, to Internet Explorer by referring to (https://learn.microsoft.com/ko-kr/deployedge/edge-ie-mode-add-guidance-cookieshare). However, cookies cannot be shared in the IE mode from Edge. I would appreciate it if you could let me know how I can share cookies in IE mode on Edge.

Currently, Edge confirmed that there are cookies, and IE mode does not confirm cookies.

Below is the local group policy I have set. I set the computer configuration and user configuration the same.

  • Local Group Policy Editor > Computer Configuration > Management Template > Internet Explorer Integrated Configuration > Use (Option : Internet)
    Explorer mode)
  • Local Group Policy Editor > Computer Configuration > Enterprise Mode Site List Configuration > Use (Option: C:\sites.xml)
  • Local Group Policy Editor > User Configuration > Management Template > Internet Explorer Integrated Configuration > Enable (Option: Internet Explorer Mode)
  • Local Group Policy Editor > User Configuration > Enterprise Mode Site List Configuration > Use (Option: C:\sites.xml)

Below is the contents of the sites.xml code.

---------------------------------------------------------------------------------------------------------------------------

<site-list version="1">  
<docMode>  
<domain docMode="11">site-name.site.co.kr  
</domain>  
<domain docMode="11">site-namei.site.co.kr  
</domain>  
</docMode>  
  
<shared-cookie domain="test.co.kr" name="cookie1"></shared-cookie>  
<shared-cookie domain="test.co.kr" name="cookie2"></shared-cookie>  
<shared-cookie host="site-name.site.co.kr" name="cookie3"></shared-cookie>  
<shared-cookie host="site-namei.site.co.kr" name="cookie3"></shared-cookie>  
  
<site url="site-name.site.co.kr">  
<compat-mode>default</compat-mode>  
<open-in>IE11</open-in>  
</site>  
</site-list>  

----------------------------------------------------------------------------------------------------------------------------

I want to use site-name.site.co.kr and site-namei.site.co.kr in IE mode.
So, I want to use Edge cookies cookie 1, cookie 2, and cookie 3 in IE mode.

Micro Edge, a document provided by MicroSoft, referred to Internet Explorer at
(https://learn.microsoft.com/ko-kr/deployedge/edge-ie-mode-add-guidance-cookieshare), but it's not working, so I'd appreciate it if you could help me share cookies in IE mode on Edge!!

Microsoft Edge Microsoft Edge development
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-11-04T01:42:47.747+00:00

    Hi @가영 김

    I think there's some problem with your sites.xml file. It looks like you're using Enterprise Mode Site List Manager (schema v.1) to create the site list file. From this doc and this doc, you can find that Enterprise Mode schema v.1 isn't supported for IE mode integration and only applies to Windows 8.1 and Windows 7. You need to upgrade to schema v.2. The Enterprise Mode v.2 XML schema example is like this.

    I don't know the cookies you need to share are domain cookies or host cookies. You can determine that according to this:

    A cookie is a domain cookie if a domain was specified in the cookie string (via HTTP Set-Cookie response header or document.cookie JS API). A domain cookie applies to the specified domain and all subdomains. If a domain was not specified in the cookie string, the cookie is a host-only cookie and only applies to the specific host that it was set for.

    I assume that the cookies you use are host cookies, the sample sites.xml file should be like the following (you can change it according to your demand):

    <site-list version="1">  
        <created-by>  
            <tool>EnterpriseSitelistManager</tool>  
            <version>12.0.0.0</version>  
            <date-created>06/15/2021 06:30:21</date-created>  
        </created-by>  
        <site url="test.co.kr">  
            <compat-mode>Default</compat-mode>  
            <open-in>IE11</open-in>  
        </site>  
        <site url="site-name.site.co.kr">  
            <compat-mode>Default</compat-mode>  
            <open-in>IE11</open-in>  
        </site>  
        <site url="site-namei.site.co.kr">  
            <compat-mode>Default</compat-mode>  
            <open-in>IE11</open-in>  
        </site>  
      
    <shared-cookie host="test.co.kr" name="cookie1"></shared-cookie>  
    <shared-cookie host="test.co.kr" name="cookie2"></shared-cookie>  
    <shared-cookie host="site-namei.site.co.kr" name="cookie3"></shared-cookie>  
    <shared-cookie host="site-name.site.co.kr" name="cookie3"></shared-cookie>  
    </site-list>  
    

    Besides, please make sure you have configured IE mode policies correctly according to the steps in this doc. And please notice that session cookies can only be shared from Microsoft Edge to Internet Explorer. Sharing session cookies in reverse (from Internet Explorer to Microsoft Edge) isn't possible.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.