From: erickson Date: Thu, 19 Mar 2009 14:47:49 +0000 (+0000) Subject: safari does not comply with cookieManager's requests to remove the cookie. dojo... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1e433b9a9da8fe385c7c958dbefe35dfa5c929d2;p=evergreen%2Fbjwebb.git 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/trunk@12607 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index 165a5bf76..a69d91a6d 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;