function authcache_user_logout in Authenticated User Page Caching (Authcache) 7
File
- ./
authcache.module, line 207 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_user_logout($account) {
// Note: include same cookie deletion in ajax/authcache.module
setcookie('drupal_user', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
setcookie('drupal_uid', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
setcookie('authcache', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
if (isset($_COOKIE['nocache'])) {
setcookie('nocache', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}
if (isset($_COOKIE['nocache_temp'])) {
setcookie('nocache_temp', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}
if (isset($_COOKIE['authcache_debug'])) {
setcookie('authcache_debug', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}
foreach ($_COOKIE as $key => $value) {
if (substr($key, 0, 3) == 'nid') {
setcookie($key, "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}
}
}