_init()
close()
delete()
delete_flash()
destroy()
forge()
get()
get_flash()
instance()
keep_flash()
key()
reset()
rotate()
set()
set_flash()
start()
__construct()
$_defaults
$_instance
$_instances
Session Class
package | Fuel |
---|---|
category | Core |
author | Harro "WanWizard" Verton |
link | http://docs.fuelphp.com/classes/session.html |
_init()
close(bool $save) : \Session_Driver
bool
if true, save the session on close
\Session_Driver
delete_flash(string $name) : \Session_Driver
string
name of the variable to delete
\Session_Driver
destroy() : \Session_Driver
\Session_Driver
forge(array | string $custom) : mixed
Produces fully configured session driver instances
array
string
full driver config or just driver type
\FuelException |
|
---|---|
\Session_Exception |
mixed
get(string $name, mixed $default) : mixed
string
name of the variable to get
mixed
default value to return if the variable does not exist
mixed
get_flash(string $name, mixed $default, bool $expire) : mixed
string
name of the variable to get
mixed
default value to return if the variable does not exist
bool
true if the flash variable needs to expire immediately
mixed
instance($instance) : \Session_Driver
void
\Session_Driver
objectkeep_flash(string $name) : \Session_Driver
string
name of the variable to keep
\Session_Driver
key(string $name) : mixed
string
name of the variable to get, default is 'session_id'
mixed
reset() : \Session_Driver
\Session_Driver
rotate() : \Session_Driver
\Session_Driver
set(string | array $name, mixed $value) : \Session_Driver
string
array
name of the variable to set or array of values, array(name => value)
mixed
value
\Session_Driver
set_flash(string $name, mixed $value) : void
string
name of the variable to set
mixed
value
start() : \Session_Driver
\Session_Driver
__construct()
$_defaults
$_instance
$_instances