public function remove($name)
    {
        $name = $this->getFullName($name);

        // Delete existing response cookie
        if (isset($this->responseCookies[$name])) {
            unset($this->responseCookies[$name]);
        }

        // Set response cookie if request cookie was set
        if (null !== $this->get($name)) {
            // Note: timestamp '1' = '1970-01-01 00:00:00 UTC'
            $this->set($name, 'deleted', '1');
        }

        return $this;
    }
public function remove($name)
    {
        $name = $this->getFullName($name);

        // Delete existing response cookie
        if (isset($this->responseCookies[$name])) {
            unset($this->responseCookies[$name]);
        }

        // Set response cookie if request cookie was set
        if (null !== $this->get($name)) {
            // Note: timestamp '1' = '1970-01-01 00:00:00 UTC'
            $this->set($name, 'deleted', '1');
        }

        return $this;
    }
public function remove ( $ name ) { $ name = $ this -> getFullName ( $ name ) ; // Delete existing response cookie if ( isset ( $ this -> responseCookies [ $ name ] ) ) { unset ( $ this -> responseCookies [ $ name ] ) ; } // Set response cookie if request cookie was set if ( null !== $ this -> get ( $ name ) ) { // Note: timestamp '1' = '1970-01-01 00:00:00 UTC' $ this -> set ( $ name , 'deleted' , '1' ) ; } return $ this ; }
Remove response cookie.

@param string $name Cookie name

@return $this
Remove response cookie .