This class serves as an adapter to the Session claass in the Kohana framework.

package Owl
author Dave Widmer

 Methods

Retrieve a session variable by the given name, if that session variable is not found, return the default value. Additionally, this function will clear out the session variable if found.

getOnce(string $name, mixed $default) : mixed

Parameters

$name

string

The property name

$default

mixed

The default value

Returns

mixedThe property or default value

Sets a session value.

set(string $name, mixed $value) 

Parameters

$name

string

The property name

$value

mixed

The property value