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

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

Delete a cookie directly
public delete ( string $name, array $options = null ) : void
$name string
$options array
Результат void
    public function delete($name, array $options = null)
    {
        if (null !== $options) {
            $this->setOptions($options);
        }
        if (isset($_COOKIE[$name])) {
            setcookie($name, $_COOKIE[$name], time() - 3600, $this->path, $this->domain, $this->secure, $this->httponly);
        }
    }