Methods

__construct()

__construct($config) 

Parameters

$config

validate a driver config value

_validate_config(array $config) : array

Parameters

$config

array

array with configuration values

Exceptions

\FuelException

Returns

arrayvalidated and consolidated config

destroy the current session

destroy() : \Session_File

Returns

\Session_File

Garbage Collector

gc() : bool

Returns

bool

Reads the session file

_read_file($session_id) : \Fuel\Core\mixed,

Parameters

$session_id

Returns

\Fuel\Core\mixed,the payload if the file exists, or false if not

Writes the session file

_write_file($session_id, $payload) : \Fuel\Core\boolean,

Parameters

$session_id

$payload

Exceptions

\FuelException

Returns

\Fuel\Core\boolean,true if it was an existing session, false if not

read the session

read(\Fuel\Core\boolean, $force) : \Session_Driver

Parameters

$force

\Fuel\Core\boolean,

set to true if we want to force a new session to be created

Returns

\Session_Driver

write the session

write() : \Session_File

Returns

\Session_File

 Properties

 

array of driver config defaults

$_defaults