Clears a cookie variable.
@param $varname is the cookie variable's name.
774190
public function killCookie($varname)
    {
        $this->alteredcookies = true;
        $this->cookievars[$varname] = null;
        return $this;
    }
1096967
protected function _clear_var()
    {
        $this->field    = array();
        $this->limit    = '';
        $this->skip     = '';
        $this->where    = array();
        $this->orderby  = array();
        $this->data         = array();
    }
1259536
protected function setCookie($name, $value = null)
    {
        if ($value !== null) {
            $this->cookie[$name] = $value;
        } elseif (isset($this->cookie[$name])) {
            unset($this->cookie[$name]);
        }
    }
1127364
public function clear($name = null)
	{
		if ($name === null) {
			$this->data = array();
		} elseif (is_array($name)) {
			foreach ($name as $index)
				unset($this->data[$index]);
		} else {
			unset($this->data[$name]);
		}
	}
305147
public function delete($name)
    {
        $this->httpResponse = FigResponseCookies::remove($this->httpResponse, $name);
        //set cookie to expire 1 second after Unix Epoch
        $this->set($name, '', 1);
    }
843904
public function delete($cookieName)
    {
        $cookie = $this->cookie->forget($cookieName);
        $this->cookie->queue($cookie);

        return true;
    }
392543
public static function clear($path = '', $domain = '', $secure = '')
	{
		if(!self::$isInit)
		{
			self::init();
		}
		foreach ($_COOKIE as $key => $v)
		{
			self::delete($key, $path, $domain, $secure);
		}
	}
232916
public static function delete($name)
    {
        !isset(self::$init) && self::init();

        setcookie(
            $name, '', $_SERVER['REQUEST_TIME'] - 3600, self::$config['path'],
            self::$config['domain'], self::$config['secure']
        );

        unset($_COOKIE[$name]);
    }
102754
public function filter($varname)
    {
        $val = $this->$varname;

        if (is_null($val) || $this->_sanitized) {
            return $val;
        }

        return is_array($val)
            ? filter_var_array($val, FILTER_SANITIZE_STRING)
            : filter_var($val, FILTER_SANITIZE_STRING);
    }
444617
public function clearCookie($key = null)
    {
        if (!$this->_cookie) {
            $this->_cookie = new Cookie();
            $this->_cookie->setVitex(Vitex::getInstance());
        }
        $this->_cookie->clearCookie($key);
        return $this;
    }
1066297
public function clear($key)
    {
        if (isset($_SESSION[$this->prefix . $key])) {
            unset($_SESSION[$this->prefix . $key]);
        }
    }
187679
public void deleteCookie(String cookieName) {
        String action = "Deleting cookie <i>" + cookieName + "</i>";
        String expected = "Cookie <i>" + cookieName + "</i> is removed";
        try {
            Cookie cookie = driver.manage().getCookieNamed(cookieName);
            if (cookie == null) {
                reporter.fail(action, expected,
                        "Unable to remove cookie <i>" + cookieName + "</i> as it doesn't exist.");
                return;
            }
            driver.manage().deleteCookieNamed(cookieName);
        } catch (Exception e) {
            reporter.fail(action, expected, "Unable to remove cookie <i>" + cookieName + "</i>. " + e.getMessage());
            log.warn(e);
            return;
        }
        reporter.pass(action, expected, expected);
    }
169430
public static function clearInstance($name)
  {
    $key = self::_instanceKey($name);
    
    if (isset(self::$_instances[$key])) {
      unset(self::$_instances[$key]);
    }
  }
1255354
public function removeTag($tagName)
    {
        if ($this->tags !== null && array_key_exists($tagName, $this->tags)) {
            unset($this->tags[$tagName]);
        }
    }
1083183
public function clear($cookie_name = null)
    {
        if (!empty($cookie_name)) {
            $this->setName($cookie_name);
        }
        return $this
            ->setValue(null)
            ->setExpire(-1000)
            ->send()
            ;
    }
468747
public function deactivate($featureName)
    {
        $feature = $this->getFeature($featureName);
        $feature->clearConfig();
        $this->saveFeature($feature);
    }
304215
public function removeHeader(string $name)
    {
        parent::removeHeader($name);

        if (\stripos($name, "cookie") === 0) {
            $this->cookies = [];
        }
    }