Skip to content

Kirby 4.2.0

$sessions->get()

Returns the specified Session object

$sessions->get(string $token, ?string $mode = null): Kirby\Session\Session

Parameters

Name Type Default Description
$token * string Session token, either including or without the key
$mode string|null null Optional transmission mode override

Return type

Kirby\Session\Session

Parent class

Kirby\Session\Sessions