function _bakery_eat_cookie in Bakery Single Sign-On System 7.2
Same name and namespace in other branches
- 6.2 bakery.module \_bakery_eat_cookie()
- 6 bakery.module \_bakery_eat_cookie()
Destroy unwanted cookies.
6 calls to _bakery_eat_cookie()
- bakery_login in ./
bakery.module - Special Bakery login callback authenticates the user and returns to slave.
- bakery_login_return in ./
bakery.module - Custom return for errors during slave login process.
- bakery_register in ./
bakery.module - Special Bakery register callback registers the user and returns to slave.
- bakery_register_return in ./
bakery.module - Custom return for slave registration process.
- bakery_user_logout in ./
bakery.module - Implements hook_user_logout().
File
- ./
bakery.module, line 1612 - Module file for the Bakery.
Code
function _bakery_eat_cookie($type = 'CHOCOLATECHIP') {
$cookie_secure = ini_get('session.cookie_secure');
$type = _bakery_cookie_name($type);
setcookie($type, '', $_SERVER['REQUEST_TIME'] - 3600, '/', '', empty($cookie_secure) ? FALSE : TRUE, TRUE);
setcookie($type, '', $_SERVER['REQUEST_TIME'] - 3600, '/', variable_get('bakery_domain', ''), empty($cookie_secure) ? FALSE : TRUE, TRUE);
}