QVCI Library 3.1
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
CI_session Class Reference

Public Member Functions

 __construct ()
 
 sess_destroy ()
 
 userdata ($item)
 
 set_userdata ($newdata=array(), $newval= '')
 
 unset_userdata ($newdata=array())
 
 _sess_run ()
 
 set_flashdata ($key, $value)
 
 keep_flashdata ($key)
 
 flashdata ($key)
 
 _flashdata_mark ()
 
 _flashdata_sweep ()
 

Public Attributes

 $flash_key = 'flash'
 Prefix for "flash" variables (eg. flash:new:message)
 

Detailed Description

Session class using native PHP session features and hardened against session fixation.

Originally written by Dariusz Debowczyk. Rewritten by Duncan Sutter. https://github.com/EllisLab/CodeIgniter/wiki/Native-session

Constructor & Destructor Documentation

CI_session::__construct ( )

Constructor

Member Function Documentation

CI_session::_flashdata_mark ( )

PRIVATE: Internal method - marks "flash" session attributes as 'old'

CI_session::_flashdata_sweep ( )

PRIVATE: Internal method - removes "flash" session marked as 'old'

CI_session::_sess_run ( )

Starts up the session system for current request

CI_session::flashdata (   $key)

Returns "flash" data for the given key.

Parameters
string$key
CI_session::keep_flashdata (   $key)

Keeps existing "flash" data available to next request.

Parameters
string$key
CI_session::sess_destroy ( )

Destroys the session and erases session storage

CI_session::set_flashdata (   $key,
  $value 
)

Sets "flash" data which will be available only in next request (then it will be deleted from session). You can use it to implement "Save succeeded" messages after redirect.

Parameters
string$key
string$value
CI_session::set_userdata (   $newdata = array(),
  $newval = '' 
)

Sets session attributes to the given values

Parameters
array$newdata
string$newval
CI_session::unset_userdata (   $newdata = array())

Erases given session attributes

Parameters
array$newdata
CI_session::userdata (   $item)

Reads given session attribute value

Parameters
string$item

The documentation for this class was generated from the following file: