You are here

function _bakery_eat_cookie in Bakery Single Sign-On System 6

Same name and namespace in other branches
  1. 6.2 bakery.module \_bakery_eat_cookie()
  2. 7.2 bakery.module \_bakery_eat_cookie()

Destroy unwanted cookies

3 calls to _bakery_eat_cookie()
bakery_user in ./bakery.module
Implementation of hook_user().
_bakery_taste_chocolatechip_cookie in ./bakery.module
Test identification cookie
_bakery_taste_oatmeal_cookie in ./bakery.module
Test redirect cookie

File

./bakery.module, line 608

Code

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