Neos\Flow\Http\Headers::hasCookie PHP Method

hasCookie() public method

Checks if the specified cookie exists
public hasCookie ( string $name ) : boolean
$name string Name of the cookie
return boolean
    public function hasCookie($name)
    {
        return isset($this->cookies[$name]);
    }

Usage Example

 /**
  * Checks if the specified cookie exists
  *
  * This is a shortcut for $message->getHeaders()->hasCookie($name);
  *
  * @param string $name Name of the cookie
  * @return boolean
  * @api
  */
 public function hasCookie($name)
 {
     return $this->headers->hasCookie($name);
 }
All Usage Examples Of Neos\Flow\Http\Headers::hasCookie