Properties

$sess_namespace

$sess_namespace : 

Type

$ci

$ci : 

Type

$store

$store : 

Type

$flashdata_key

$flashdata_key : 

Type

$_config

$_config : 

Type

Methods

__construct()

__construct() : void

Constructor

sess_create()

sess_create() : void

Create Session

sess_destroy()

sess_destroy() 

Destroy session

userdata()

userdata(  $value) : object

Get specific user data element

Parameters

$value

Returns

object —

element value

set_userdata()

set_userdata(  $data = array(),   $value = '') : void

Set value for specific user data element

Parameters

$data
$value

unset_userdata()

unset_userdata(  $data = array()) : void

remove array value for specific user data element

Parameters

$data

all_userdata()

all_userdata() : array

Fetch all session data

Returns

array

set_flashdata()

set_flashdata(  $newdata = array(),   $newval = '') : void

Add or change flashdata, only available until the next request

Parameters

$newdata
$newval

keep_flashdata()

keep_flashdata(  $key) : void

Keeps existing flashdata available to next request.

Parameters

$key

flashdata()

flashdata(  $key) : string

Fetch a specific flashdata item from the session array

Parameters

$key

Returns

string

initialize()

initialize() : void

Initialize the configuration options

_flashdata_mark()

_flashdata_mark() : void

Identifies flashdata as 'old' for removal when _flashdata_sweep() runs.

_flashdata_sweep()

_flashdata_sweep() : void

Removes all flashdata marked as 'old'