From f233641d2b3b061ccd255931c69d1e11a10a5eb0 Mon Sep 17 00:00:00 2001 From: Mike Brousseau Date: Thu, 8 Nov 2012 13:24:15 -0500 Subject: [PATCH] Update src/static/js/pad.js Check if the browser is IE and if so output the entire path via document.location over document.location.pathname to the cookie creation in createCookie() --- src/static/js/pad.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/static/js/pad.js b/src/static/js/pad.js index 897770405..a0680c6ff 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -63,8 +63,13 @@ function createCookie(name, value, days, path) if(!path) path = "/"; - - document.cookie = name + "=" + value + expires + "; path=" + path; + //Check if the browser is IE and if so make sure the full path is set in the cookie + if(navigator.appName=='Microsoft Internet Explorer'){ + document.cookie = name + "=" + value + expires + "; path="+document.location; + } + else{ + document.cookie = name + "=" + value + expires + "; path=" + path; + } } function readCookie(name)