writing cookies as "" instead of calling .remove
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 23:28:07 +0000 (23:28 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 15 Mar 2006 23:28:07 +0000 (23:28 +0000)
.remove doesn't seem to want to work

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

Open-ILS/web/opac/common/js/opac_utils.js

index 61e8b60..66292b1 100644 (file)
@@ -406,7 +406,7 @@ function grabFleshedUser() {
 
        if(!G.user || G.user.length == 0) { 
                G.user = null; return false; 
 
        if(!G.user || G.user.length == 0) { 
                G.user = null; return false; 
-               cookieManager.remove(COOKIE_SES);
+               cookieManager.write(COOKIE_SES,"");
        }
 
        G.user.session = ses;
        }
 
        G.user.session = ses;
@@ -533,8 +533,8 @@ function doLogout(noredirect) {
     }
 
        G.user = null;
     }
 
        G.user = null;
-       cookieManager.remove(COOKIE_SES);
-       cookieManager.remove(COOKIE_SKIN);
+       cookieManager.write(COOKIE_SES, "");
+       cookieManager.write(COOKIE_SKIN, "");
        checkUserSkin("default");
        COUNT = 10;
 
        checkUserSkin("default");
        COUNT = 10;