$sessionStore->exists()
Checks if the given session exists
$sessionStore->exists(int $expiryTime, string $id): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $expiryTimerequired | int |
no default value | Timestamp |
| $idrequired | string |
no default value | Session ID |
Return type
bool
true: session exists, false: session doesn't exist
This method modifies the existing $sessionstore object it is applied to and returns it again.