function authcache_debug_user_logout in Authenticated User Page Caching (Authcache) 7.2
Implements hook_user_logout().
File
- modules/
authcache_debug/ authcache_debug.module, line 53 - Debug widget for Authcache.
Code
function authcache_debug_user_logout($account) {
$cookies['Drupal.authcache.cache_render']['present'] = FALSE;
$cookies['Drupal.authcache.aucdbg']['present'] = variable_get('authcache_debug_all', FALSE);
if ($cookies['Drupal.authcache.aucdbg']['present']) {
$cookies['Drupal.authcache.aucdbg']['value'] = isset($_COOKIE['Drupal_authcache_aucdbg']) ? $_COOKIE['Drupal_authcache_aucdbg'] : hexdec(mt_rand(0, 0xffff));
$cookies['Drupal.authcache.aucdbg']['secure'] = FALSE;
}
authcache_add_cookie($cookies);
}