$session->duration()
Gets or sets the session duration Setting the duration also updates the expiry time and regenerates the session token
Parameters
Name | Type | Default | Description |
---|---|---|---|
$duration | int |null |
null |
Optional new duration in seconds to set |
Return type
int