src/HttpResponse.php
public function addCookie($name, $value, $expire = null, $path = null, $domain = null)
    {
        if (!is_null($expire)) {
            $expire = time() + $expire;
        }
        setcookie($name, $value, $expire, $path, $domain);
    }
public function addCookie($name, $value, $expire = null, $path = null, $domain = null)
    {
        if (!is_null($expire)) {
            $expire = time() + $expire;
        }
        setcookie($name, $value, $expire, $path, $domain);
    }
public function addCookie ( $ name , $ value , $ expire = null , $ path = null , $ domain = null ) { if ( ! is_null ( $ expire ) ) { $ expire = time ( ) + $ expire ; } setcookie ( $ name , $ value , $ expire , $ path , $ domain ) ; }
Add a cookie value

@param string $name
@param string $value
@param int $expire (seconds from now)
@param int $path (directory into domain in which the cookie will be available on )
@param string $domain
Add a cookie value