mixing use of '/' and '/eg' for the auth cookie path is creating complications; ...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Jan 2011 16:33:58 +0000 (16:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Jan 2011 16:33:58 +0000 (16:33 +0000)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19105 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/base.js

index cf924c1..4f5c3e7 100644 (file)
@@ -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');