Skip to content

Kirby 4.2.0

$session->mode()

Gets or sets the transmission mode Setting only works for new sessions that haven't been transmitted yet

$session->mode(?string $mode = null): string

Parameters

Name Type Default Description
$mode string|null null Optional new transmission mode

Return type

string

Parent class

Kirby\Session\Session