You are here

static function FlagNonGlobalCookieStorage::drop in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.inc \FlagNonGlobalCookieStorage::drop()
  2. 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::drop()

Deletes the cookie.

Overrides FlagCookieStorage::drop

1 call to FlagNonGlobalCookieStorage::drop()
FlagCookieStorage::drop in ./flag.inc
Deletes all the cookies.

File

./flag.inc, line 2019
Implements various flags. Uses object oriented style inspired by that of Views 2.

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']);
  }
}