function _bakery_eat_cookie in Bakery Single Sign-On System 6.2
Same name and namespace in other branches
- 6 bakery.module \_bakery_eat_cookie()
- 7.2 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 in ./
bakery.module - Implementation of hook_user().
File
- ./
bakery.module, line 1496
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);
}