Skip to content

Kirby 4.5.0

Cookie::lifetime()

Calculates the lifetime for a cookie

Cookie::lifetime(int $minutes): int

Parameters

Name Type Default Description
$minutes * int Number of minutes or timestamp

Return type

int

Parent class

Kirby\Http\Cookie