Skip to content

Kirby 5.2.0

$session->expiryTime()

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

$session->expiryTime(string|int|null $expiryTime = null): int

Parameters

Name Type Default Description
$expiryTime stringorintornull null Optional new expiry timestamp or time string to set

Return type

int

Timestamp

This method modifies the existing $session object it is applied to and returns it again.

Parent class

Kirby\Session\Session