$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 |
null |
Optional new duration in seconds to set |
Return type
int