From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 4 Jan 2011 16:33:58 +0000 (+0000)
Subject: mixing use of '/' and '/eg' for the auth cookie path is creating complications; ... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=635de313b3c068375ad7b710f513f0833de7df68;p=evergreen%2Fmasslnc.git

mixing use of '/' and '/eg' for the auth cookie path is creating complications;  fall back to '/', which is the assumption from most EG code

Signed-off-by: Bill Erickson <berick@esilibrary.com>

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19105 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/base.js b/Open-ILS/web/js/ui/base.js
index cf924c1e23..4f5c3e7605 100644
--- a/Open-ILS/web/js/ui/base.js
+++ b/Open-ILS/web/js/ui/base.js
@@ -43,7 +43,6 @@ function oilsSetupUser() {
         if(!authtoken) {
 
             dojo.cookie('ses', null, {expires:-1, path:'/'}); // remove the cookie
-            dojo.cookie('ses', null, {expires:-1, path:oilsBasePath}); // remove the cookie
 
             dojo.addOnLoad(function(){
                 if(openils.XUL.isXUL()) {
@@ -63,7 +62,7 @@ function oilsSetupUser() {
         }
     }
 
-    dojo.cookie('ses', authtoken, {path:oilsBasePath});
+    dojo.cookie('ses', authtoken, {path:'/'});
     openils.User.authtoken = authtoken;
     openils.User.workstation = workstation;
     return authtoken;
@@ -111,7 +110,7 @@ function oilsDoLogin() {
         args.workstation = workstation;
 
     if(user.login(args)) {
-        dojo.cookie('ses', user.authtoken, {path : oilsBasePath});
+        dojo.cookie('ses', user.authtoken, {path : '/'});
         location.href = location.href;
     } else {
         openils.Util.show('oils-login-failed');