$sessions->get()
Returns the specified Session object
$sessions->get(string $token, string|null $mode = null): Kirby\Session\Session
Parameters
Name | Type | Default | Description |
---|---|---|---|
$tokenrequired | string |
no default value | Session token, either including or without the key |
$mode | string ornull |
null
|
Optional transmission mode override |
Return type
This method modifies the existing $sessions
object it is applied to and returns it again.