You are here

function authcache_example_user_logout in Authenticated User Page Caching (Authcache) 7

Implements of hook_user_logout()

Cookies need to be reset in case user logs in under a different account

File

modules/authcache_example/authcache_example.module, line 194
authcache_example.module

Code

function authcache_example_user_logout($account) {
  setcookie('authcache_example', "", REQUEST_TIME - 86400, ini_get('session.cookie_path'), ini_get('session.cookie_domain'), ini_get('session.cookie_secure') == '1');
}