Skip to content

Kirby 6.0.0

$sessions->current()

Returns the current session based on the configured token transmission $mode

$sessions->current(): Session|null

Return types

Kirby\Session\Sessionornull

Exceptions

Type Description
Kirby\Exception\LogicException In manual mode

Parent class

Kirby\Session\Sessions