$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.