[open-ils-commits] r19109 - branches/rel_2_0/Open-ILS/web/js/ui (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 4 11:35:30 EST 2011


Author: erickson
Date: 2011-01-04 11:35:28 -0500 (Tue, 04 Jan 2011)
New Revision: 19109

Modified:
   branches/rel_2_0/Open-ILS/web/js/ui/base.js
Log:
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 at esilibrary.com>

Modified: branches/rel_2_0/Open-ILS/web/js/ui/base.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/base.js	2011-01-04 16:35:10 UTC (rev 19108)
+++ branches/rel_2_0/Open-ILS/web/js/ui/base.js	2011-01-04 16:35:28 UTC (rev 19109)
@@ -37,7 +37,6 @@
         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()) {
@@ -57,7 +56,7 @@
         }
     }
 
-    dojo.cookie('ses', authtoken, {path:oilsBasePath});
+    dojo.cookie('ses', authtoken, {path:'/'});
     openils.User.authtoken = authtoken;
     openils.User.workstation = workstation;
     return authtoken;
@@ -105,7 +104,7 @@
         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');



More information about the open-ils-commits mailing list