protected function Bakery::deleteCookie in Bakery Single Sign-On System 7.3
Delete cookie by setting empty value.
Parameters
string $name Cookie name.:
2 calls to Bakery::deleteCookie()
- Bakery::deleteSsoCookie in ./
bakery.inc - Delete SSO cookie.
- Bakery::deleteSubCookie in ./
bakery.inc - Delete sub-site cookie.
File
- ./
bakery.inc, line 212
Class
Code
protected function deleteCookie($name) {
$cookie_secure = ini_get('session.cookie_secure');
setcookie($name, '', $_SERVER['REQUEST_TIME'] - 3600, '/', '', empty($cookie_secure) ? FALSE : TRUE);
setcookie($name, '', $_SERVER['REQUEST_TIME'] - 3600, '/', $this->domain, empty($cookie_secure) ? FALSE : TRUE);
}