public function removeCookie(string $name)
    {
        if (isset($this->cookies[$name])) {
            unset($this->cookies[$name]);
            $this->setHeadersFromCookies();
        }
    }
public function removeCookie(string $name)
    {
        if (isset($this->cookies[$name])) {
            unset($this->cookies[$name]);
            $this->setHeadersFromCookies();
        }
    }
public function removeCookie ( string $ name ) { if ( isset ( $ this -> cookies [ $ name ] ) ) { unset ( $ this -> cookies [ $ name ] ) ; $ this -> setHeadersFromCookies ( ) ; } }
Removes a cookie from the response.

@param string $name
Removes a cookie from the response .