Skip to content

Kirby 3.7.5

new Sessions()

Creates a new Sessions instance

new Sessions(\Kirby\Session\SessionStore|string $store, array $options = [ ])

Parameters

Name Type Default Description
$store * Kirby\Session\SessionStore|string SessionStore object or a path to the storage directory (uses the FileSessionStore)
$options array [ ] Optional additional options:
- mode: Default token transmission mode (cookie, header or manual); defaults to cookie
- cookieName: Name to use for the session cookie; defaults to kirby_session
- gcInterval: How often should the garbage collector be run?; integer or false for never; defaults to 100

Parent class

Kirby\Session\Sessions