Pop\Web\Cookie::clear PHP Метод

clear() публичный Метод

Clear (delete) all cookies via unset($cookie)
public clear ( array $options = null ) : void
$options array
Результат void
    public function clear(array $options = null)
    {
        if (null !== $options) {
            $this->setOptions($options);
        }
        foreach ($_COOKIE as $name => $value) {
            if (isset($_COOKIE[$name])) {
                setcookie($name, $_COOKIE[$name], time() - 3600, $this->path, $this->domain, $this->secure, $this->httponly);
            }
        }
    }