Skip to content

Kirby 5.0.4

$sessions->get()

Returns the specified Session object

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

Parameters

Name Type Default Description
$tokenrequired string no default value Session token, either including or without the key
$mode stringornull null Optional transmission mode override

Return type

Kirby\Session\Session

This method modifies the existing $sessions object it is applied to and returns it again.

Parent class

Kirby\Session\Sessions