Skip to content

Kirby 3.5.7.1

Cookie::forever()

Stores a cookie forever

Cookie::forever(string $key, string $value, array $options = [ ]): bool

Parameters

Name Type Default Description
$key * string The name of the cookie
$value * string The cookie content
$options array [ ] Array of options:
path, domain, secure, httpOnly

Return type

bool

Parent class

Kirby\Http\Cookie