Skip to content

Kirby 5.0.4

$api->session()

Returns the current Session instance

$api->session(array $options = [ ]): Kirby\Session\Session

Parameters

Name Type Default Description
$options array [ ] Additional options, see the session component

Return type

Kirby\Session\Session

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

Parent class

Kirby\Cms\Api