lib/Http/Response.php
public function setCookie($name, $value, $expire = 0, $path = null, $domain = null, $secure = false, $httpOnly = false)
    {
        return $this->addCookie((new Cookie())
            ->setName($name)
            ->setValue($value)
            ->setExpireTimestamp($expire)
            ->setPath($path)
            ->setDomain($domain)
            ->setSecure($secure)
            ->setHttpOnly($httpOnly));
    }
public function setCookie($name, $value, $expire = 0, $path = null, $domain = null, $secure = false, $httpOnly = false)
    {
        return $this->addCookie((new Cookie())
            ->setName($name)
            ->setValue($value)
            ->setExpireTimestamp($expire)
            ->setPath($path)
            ->setDomain($domain)
            ->setSecure($secure)
            ->setHttpOnly($httpOnly));
    }
public function setCookie ( $ name , $ value , $ expire = 0 , $ path = null , $ domain = null , $ secure = false , $ httpOnly = false ) { return $ this -> addCookie ( ( new Cookie ( ) ) -> setName ( $ name ) -> setValue ( $ value ) -> setExpireTimestamp ( $ expire ) -> setPath ( $ path ) -> setDomain ( $ domain ) -> setSecure ( $ secure ) -> setHttpOnly ( $ httpOnly ) ) ; }
Creates or updates a cookie.

@param string $name Cookie name.
@param string $value Cookie value.
@param int $expire Unix expiration timestamp, or 0 for session expire.
@param string|null $path The path the cookie can be used on.
@param string|null $domain The domain the cookie can be used on.
@param bool $secure True for HTTPS only.
@param bool $httpOnly True for HTTP(S) only (not accessible to JavaScript, etc).
@return $this
Creates or updates a cookie .