static function FlagNonGlobalCookieStorage::drop in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.inc \FlagNonGlobalCookieStorage::drop()
- 7.2 flag.inc \FlagNonGlobalCookieStorage::drop()
Deletes the cookie.
Overrides FlagCookieStorage::drop
1 call to FlagNonGlobalCookieStorage::drop()
- FlagCookieStorage::drop in includes/
flag.cookie_storage.inc - Deletes all the cookies.
File
- includes/
flag.cookie_storage.inc, line 164 - Contains the FlagCookieStorage class.
Class
- FlagNonGlobalCookieStorage
- Storage handler for non-global flags.
Code
static function drop() {
if (isset($_COOKIE['flags'])) {
setcookie('flags', FALSE, 0, base_path());
unset($_COOKIE['flags']);
}
}