__construct() __construct( $params = array()) Session Constructor The constructor runs the session routines automatically whenever the class is instantiated. Parameters $params
userdata() userdata( $item) : string Fetch a specific item from the session array Parameters $item Returns string
set_userdata() set_userdata( $newdata = array(), $newval = '') : void Add or change data in the "userdata" array Parameters $newdata $newval
unset_userdata() unset_userdata( $newdata = array()) : void Delete a session variable from the "userdata" array Parameters $newdata
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
_flashdata_mark() _flashdata_mark() : void Identifies flashdata as 'old' for removal when _flashdata_sweep() runs.
_set_cookie() _set_cookie( $cookie_data = NULL) : void Write the session cookie Parameters $cookie_data
_serialize() _serialize( $data) : string Serialize an array This function first converts any slashes found in the array to a temporary marker, so when it gets unserialized the slashes will be preserved Parameters $data Returns string
_unserialize() _unserialize( $data) : string Unserialize This function unserializes a data string, then converts any temporary slash markers back to actual slashes Parameters $data Returns string
_sess_gc() _sess_gc() : void Garbage collection This deletes expired session rows from database if the probability percentage is met