Cookie::set()
Set a new cookie
Parameters
Name | Type | Default | Description |
---|---|---|---|
$key * | string |
– | The name of the cookie |
$value * | string |
– | The cookie content |
$options | array |
[ ] |
Array of options: lifetime, path, domain, secure, httpOnly, sameSite |
Return type
bool