Reference

Guide

$kirby->session()

Returns the current session object

$kirby->session(array $options = [ ]): Session

Parameters

Name Type Default Description
$options array [ ]

Additional options, see the session component

Return type

Session

Source code

kirby/src/Cms/App.php#L1017