Skip to content

Kirby 5.3.2

$session->mode()

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

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

Parameters

Name Type Default Description
$mode stringornull null Optional new transmission mode

Return type

string

Transmission mode

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

Parent class

Kirby\Session\Session