Skip to content

Kirby 3.8.4

$autosession->createManually()

Creates a new empty session that is not automatically transmitted to the client Useful for custom applications like a password reset link Does not affect the automatic session

$autosession->createManually(array $options = [ ]): Kirby\Session\Session

Parameters

Name Type Default Description
$options array [ ] Optional additional options:
- startTime: Time the session starts being valid (date string or timestamp); defaults to now
- expiryTime: Time the session expires (date string or timestamp); defaults to + 2 hours
- timeout: Activity timeout in seconds (integer or false for none); defaults to 1800 (half an hour)
- renewable: Should it be possible to extend the expiry date?; defaults to true

Return type

Kirby\Session\Session

Parent class

Kirby\Session\AutoSession