From 7614f33efae559fc6f05bec265e64fb3d0993c2f Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 19 Mar 2009 14:48:33 +0000 Subject: [PATCH] safari does not comply with cookieManager's requests to remove the cookie. dojo.cookie works in Safari. Fixing the crucial cookies now. more later. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12609 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/opac_utils.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index 165a5bf762..a69d91a6dd 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -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; -- 2.11.0