changeset 79:01cf0e93c914

cs: fix cookie paths
author paulo
date Thu, 02 Jun 2016 01:51:04 -0600
parents f833a888c548
children ff0878207f0e
files cs/index.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/cs/index.html	Thu Jun 02 00:27:50 2016 -0700
     1.2 +++ b/cs/index.html	Thu Jun 02 01:51:04 2016 -0600
     1.3 @@ -34,7 +34,7 @@
     1.4  	unset.type = "button";
     1.5  	unset.value = "Unset";
     1.6  	unset.onclick = function() {
     1.7 -		docCookies.removeItem(k);
     1.8 +		docCookies.removeItem(k, "/");
     1.9  		setCookiesDiv.removeChild(d);
    1.10  	};
    1.11  
    1.12 @@ -63,7 +63,7 @@
    1.13  }
    1.14  
    1.15  function set() {
    1.16 -	docCookies.setItem(setK.value, setV.value, 600);
    1.17 +	docCookies.setItem(setK.value, setV.value, 600, "/");
    1.18  	setK.value = "";
    1.19  	setV.value = "";
    1.20  	load();