|
|
| $flash_key = 'flash' |
| | Prefix for "flash" variables (eg. flash:new:message)
|
| |
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
| CI_session::__construct |
( |
| ) |
|
| 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
-
| CI_session::keep_flashdata |
( |
|
$key | ) |
|
Keeps existing "flash" data available to next request.
- Parameters
-
| 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
-
| 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
-
| CI_session::userdata |
( |
|
$item | ) |
|
Reads given session attribute value
- Parameters
-
The documentation for this class was generated from the following file:
- qvci/libraries/Session.php