public function remove(string $name, string $path = '/', string $domain = null): self
    {
        $path = $path ?? '/';

        unset($this->cookies[$domain][$path][$name]);

        if (empty($this->cookies[$domain][$path])) {
            unset($this->cookies[$domain][$path]);

            if (empty($this->cookies[$domain])) {
                unset($this->cookies[$domain]);
            }
        }

        return $this;
    }
public function remove(string $name, string $path = '/', string $domain = null): self
    {
        $path = $path ?? '/';

        unset($this->cookies[$domain][$path][$name]);

        if (empty($this->cookies[$domain][$path])) {
            unset($this->cookies[$domain][$path]);

            if (empty($this->cookies[$domain])) {
                unset($this->cookies[$domain]);
            }
        }

        return $this;
    }
public function remove ( string $ name , string $ path = '/' , string $ domain = null ) : self { $ path = $ path ?? '/' ; unset ( $ this -> cookies [ $ domain ] [ $ path ] [ $ name ] ) ; if ( empty ( $ this -> cookies [ $ domain ] [ $ path ] ) ) { unset ( $ this -> cookies [ $ domain ] [ $ path ] ) ; if ( empty ( $ this -> cookies [ $ domain ] ) ) { unset ( $ this -> cookies [ $ domain ] ) ; } } return $ this ; }
Removes a cookie from the array, but does not unset it in the browser.

@param string $name   Cookie name
@param string $path   [optional] Cookie path
@param string $domain [optional] Cookie domain

@return \Valkyrja\Http\Cookies
Removes a cookie from the array but does not unset it in the browser .