safari does not comply with cookieManager's requests to remove the cookie. dojo...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Mar 2009 14:47:49 +0000 (14:47 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Mar 2009 14:47:49 +0000 (14:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12607 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 165a5bf..a69d91a 100644 (file)
@@ -1,5 +1,6 @@
 /* - Request ------------------------------------------------------------- */
 
+
 /* define it again here for pages that don't load RemoteRequest */
 function isXUL() { try { if(IAMXUL) return true;}catch(e){return false;}; }
 
@@ -754,12 +755,12 @@ function doLogout() {
        G.user = null;
 
        /* remove any cached data */
-       //cookieManager.remove(COOKIE_IDS);
-       //cookieManager.remove(COOKIE_SRIDS);
-       cookieManager.remove(COOKIE_RIDS);
-       cookieManager.remove(COOKIE_SES);
-       cookieManager.remove(COOKIE_SKIN);
-       cookieManager.remove(COOKIE_SEARCH);
+    dojo.require('dojo.cookie');
+    dojo.cookie(COOKIE_SES, '', {expires:-1});
+    dojo.cookie(COOKIE_RIDS, '', {expires:-1});
+    dojo.cookie(COOKIE_SKIN, '', {expires:-1});
+    dojo.cookie(COOKIE_SEARCH, '', {expires:-1});
+
 
        checkUserSkin("default");
        COUNT = 10;