public function remove($key)
    {
        if ($this->has($key)) {
            // Set cookie in the past
            $this->set($key, '', -86400);
            // And also make sure it won't be available on the current HTTP request
            unset($this->cookies[$key]);
            return true;
        } else {
            return false;
        }
    }
public function remove($key)
    {
        if ($this->has($key)) {
            // Set cookie in the past
            $this->set($key, '', -86400);
            // And also make sure it won't be available on the current HTTP request
            unset($this->cookies[$key]);
            return true;
        } else {
            return false;
        }
    }
public function remove ( $ key ) { if ( $ this -> has ( $ key ) ) { // Set cookie in the past $ this -> set ( $ key , '' , - 86400 ) ; // And also make sure it won't be available on the current HTTP request unset ( $ this -> cookies [ $ key ] ) ; return true ; } else { return false ; } }
Removes a cookie by its associated key

@param string $key
@return boolean True if deleted, false if not
Removes a cookie by its associated key