Skip to content

Kirby 3.5.7.1

$session->duration()

Gets or sets the session duration Setting the duration also updates the expiry time and regenerates the session token

$session->duration(int $duration = null): int

Parameters

Name Type Default Description
$duration int null Optional new duration in seconds to set

Return type

int

Parent class

Kirby\Session\Session