]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fixing wrong cookie usage in xml pages
authorJan Michel <j.michel@gsi.de>
Mon, 7 Dec 2015 11:04:36 +0000 (12:04 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 7 Dec 2015 11:04:36 +0000 (12:04 +0100)
web/htdocs/scripts/xmlpage.js

index 849978bd12d2b5fc595d5224358c95f4e552b2d5..5977a55349fdfb3c9e77fca44baa979211088d4c 100644 (file)
     var d = new Date();
     d.setTime(d.getTime()+(30*24*60*60*1000));
     var expires = "expires="+d.toGMTString();
-    document.cookie = cname + "=" + cvalue + "; " + expires;
+    var path = window.location.pathname;
+    document.cookie = cname + "=" + cvalue + "; " + expires + ";path= " + path;
     } 
     
     
\ No newline at end of file