[open-ils-commits] r19105 - trunk/Open-ILS/web/js/ui (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 4 11:34:00 EST 2011
Author: erickson
Date: 2011-01-04 11:33:58 -0500 (Tue, 04 Jan 2011)
New Revision: 19105
Modified:
trunk/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: trunk/Open-ILS/web/js/ui/base.js
===================================================================
--- trunk/Open-ILS/web/js/ui/base.js 2011-01-04 16:30:05 UTC (rev 19104)
+++ trunk/Open-ILS/web/js/ui/base.js 2011-01-04 16:33:58 UTC (rev 19105)
@@ -43,7 +43,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()) {
@@ -63,7 +62,7 @@
}
}
- 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 @@
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