Microsoft Edge Extension document.cookie silently fails do store
<p>I have a chrome extension where i store a cookie within the document.cookie. This is then refetched every time the user opens the popover.</p>

<p>I have used the Microsoft Edge convertor tool, to convert the extension to support the edge browser. This all worked as expected.</p>

<p>However a cookie is never persisted, is this a limitation of the edge browser? or am i missing something?</p>

<p>I can set, and get the cookie straight after and it is never returned.</p>

<p>Copied below is the source for setting the cookie</p>

<pre><code>var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));var expires = "expires="+ d.toUTCString();        
var path = "path='/'";
document.cookie = cname + "=" + (cvalue) + "; " + expires + "; path=/;";
</code></pre>

<p>Getting the cookie:</p>

<pre><code>var ca = document.cookie.split(';');
for(var i = 0; i &lt;ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') {
        c = c.substring(1);
    }
    if (c.indexOf(name) == 0) {
        return (c.substring(name.length,c.length));
    }
}

return ""; 
</code></pre>