$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 |