Skip to content

Kirby 5.0.4

$fileSessionStore->exists()

Checks if the given session exists

$fileSessionStore->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 $filesessionstore object it is applied to and returns it again.

Parent class

Kirby\Session\FileSessionStore