Reference

Guide

$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

Source code

kirby/src/Session/Session.php#L227