From: Jan Michel Date: Mon, 7 Dec 2015 11:04:36 +0000 (+0100) Subject: fixing wrong cookie usage in xml pages X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=292be98689286bdc4936702f58ee2a62a30c4ff9;p=daqtools.git fixing wrong cookie usage in xml pages --- diff --git a/web/htdocs/scripts/xmlpage.js b/web/htdocs/scripts/xmlpage.js index 849978b..5977a55 100644 --- a/web/htdocs/scripts/xmlpage.js +++ b/web/htdocs/scripts/xmlpage.js @@ -164,7 +164,8 @@ 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