fix IE auth but only a temp fix

pull/1221/head
John McLear 2012-12-03 12:47:11 +00:00
parent d09894ce77
commit 0b92fdfc62
1 changed files with 3 additions and 2 deletions

View File

@ -52,8 +52,9 @@ function createCookie(name, value, days, path)
if(!path) if(!path)
path = "/"; path = "/";
if(!path) // This fixes an issue with IE not wanting to store cookies for Auth #1234. It's a temp fix because
path = "/"; // Really we should be storing the cookie on teh document.location path and not modifying the fsking URL to contain a password!
document.cookie = name + "=" + value + expires + "; path=" + "/";
//Check if the browser is IE and if so make sure the full path is set in the cookie //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'){ if(navigator.appName=='Microsoft Internet Explorer'){