You are here

static function FlagNonGlobalCookieStorage::drop in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::drop()
  2. 7.2 flag.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 1927
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']);
  }
}