$session->timeout()
Gets or sets the session timeout
$session->timeout(int|false|null $timeout = null): int|false
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $timeout | intorfalseornull |
null
|
Optional new timeout to set or false to disable timeout |
Return types
intorfalse
Number of seconds or false for "no timeout"
This method modifies the existing $session object it is applied to and returns it again.