Swoole\Http\Response::cookie
PHP function
Edit on GitHub ✎
(PECL swoole >= 1.9.0)
Set the cookies of the HTTP response.
Description
Swoole\Http\Response::cookie(string $name, [string $value], [string $expires], [string $path], [string $domain], [string $secure], [string $httponly]): string
Parameters
namevalueexpirespathdomainsecurehttponly