src/Room11/HTTP/Response/Response.php
public function setCookie($name, $value = '', array $options = [])
    {
        $value = urlencode($value);
        $this->assignCookieHeader($name, $value, $options);

        return $this;
    }
public function setCookie($name, $value = '', array $options = [])
    {
        $value = urlencode($value);
        $this->assignCookieHeader($name, $value, $options);

        return $this;
    }
public function setCookie ( $ name , $ value = '' , array $ options = [ ] ) { $ value = urlencode ( $ value ) ; $ this -> assignCookieHeader ( $ name , $ value , $ options ) ; return $ this ; }
Set a cookie value to be sent with the response.

Cookie values will be available upon the client's next request. Extended cookie options
beyond the name-value pair may be specified using individual keys in the $options array:

[
'expire' => 0,       // Expiration time (unix timestamp) for this cookie
'path' => '',        // The server path on which the cookie will be available
'domain' => '',      // The domain on which the cookie will be available
'secure' => FALSE,   // Indicates the cookie should only be sent via HTTPS
'httponly' => FALSE  // When TRUE the cookie is only available via the HTTP protocol
];

@param string $name
@param string $value
@param array $options
@return Response Returns the current object instance
Set a cookie value to be sent with the response .