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()) {
}
}
- dojo.cookie('ses', authtoken, {path:oilsBasePath});
+ dojo.cookie('ses', authtoken, {path:'/'});
openils.User.authtoken = authtoken;
openils.User.workstation = workstation;
return authtoken;
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');