You are here

function _bakery_destroy_cookie in Bakery Single Sign-On System 7.4

Destroy unwanted cookies

2 calls to _bakery_destroy_cookie()
bakery_user_logout in ./bakery.module
Implements hook_user_logout().
_bakery_taste_chocolatechip_cookie in ./bakery.module
Test identification cookie

File

./bakery.module, line 710

Code

function _bakery_destroy_cookie($type = 'CHOCOLATECHIP') {
  $type = _bakery_cookie_name($type);
  setcookie($type, '', $_SERVER['REQUEST_TIME'] - 3600, '/', '', TRUE, TRUE);
  setcookie($type, '', $_SERVER['REQUEST_TIME'] - 3600, '/', variable_get('bakery_domain', ''), TRUE, TRUE);
}