-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Session
CodeIgniter Session Class
- Class name: CI_Session
- Namespace:
public mixed $userdata
Userdata array
Just a reference to $_SESSION, for BC purposes.
- Visibility: public
protected mixed $_driver = 'files'
- Visibility: protected
protected mixed $_config
- Visibility: protected
void CI_Session::__construct(array $params)
Class constructor
- Visibility: public
- $params array - <p>Configuration parameters</p>
string CI_Session::_ci_load_classes(string $driver)
CI Load Classes
An internal method to load all possible dependency and extension classes. It kind of emulates the CI_Driver library, but is self-sufficient.
- Visibility: protected
- $driver string - <p>Driver name</p>
void CI_Session::_configure($params)
Configuration
Handle input parameters and configuration defaults
- Visibility: protected
- $params mixed
void CI_Session::_ci_init_vars()
Handle temporary variables
Clears old "flash" data, marks the new one for deletion and handles "temp" data deletion.
- Visibility: protected
boolean CI_Session::mark_as_flash(mixed $key)
Mark as flash
- Visibility: public
- $key mixed - <p>Session data key(s)</p>
array CI_Session::get_flash_keys()
Get flash keys
- Visibility: public
void CI_Session::unmark_flash(mixed $key)
Unmark flash
- Visibility: public
- $key mixed - <p>Session data key(s)</p>
boolean CI_Session::mark_as_temp(mixed $key, integer $ttl)
Mark as temp
- Visibility: public
- $key mixed - <p>Session data key(s)</p>
- $ttl integer - <p>Time-to-live in seconds</p>
array CI_Session::get_temp_keys()
Get temp keys
- Visibility: public
void CI_Session::unmark_temp(mixed $key)
Unmark flash
- Visibility: public
- $key mixed - <p>Session data key(s)</p>
mixed CI_Session::__get(string $key)
__get()
- Visibility: public
- $key string - <p>'session_id' or a session data key</p>
void CI_Session::__set(string $key, mixed $value)
__set()
- Visibility: public
- $key string - <p>Session data key</p>
- $value mixed - <p>Session data value</p>
void CI_Session::sess_destroy()
Session destroy
Legacy CI_Session compatibility method
- Visibility: public
void CI_Session::sess_regenerate(boolean $destroy)
Session regenerate
Legacy CI_Session compatibility method
- Visibility: public
- $destroy boolean - <p>Destroy old session data flag</p>
mixed CI_Session::get_userdata()
Get userdata reference
Legacy CI_Session compatibility method
- Visibility: public
mixed CI_Session::userdata(string $key)
Userdata (fetch)
Legacy CI_Session compatibility method
- Visibility: public
- $key string - <p>Session data key</p>
void CI_Session::set_userdata(mixed $data, mixed $value)
Set userdata
Legacy CI_Session compatibility method
- Visibility: public
- $data mixed - <p>Session data key or an associative array</p>
- $value mixed - <p>Value to store</p>
void CI_Session::unset_userdata($key)
Unset userdata
Legacy CI_Session compatibility method
- Visibility: public
- $key mixed
array CI_Session::all_userdata()
All userdata (fetch)
Legacy CI_Session compatibility method
- Visibility: public
boolean CI_Session::has_userdata(string $key)
Has userdata
Legacy CI_Session compatibility method
- Visibility: public
- $key string - <p>Session data key</p>
mixed CI_Session::flashdata(string $key)
Flashdata (fetch)
Legacy CI_Session compatibility method
- Visibility: public
- $key string - <p>Session data key</p>
void CI_Session::set_flashdata(mixed $data, mixed $value)
Set flashdata
Legacy CI_Session compatibility method
- Visibility: public
- $data mixed - <p>Session data key or an associative array</p>
- $value mixed - <p>Value to store</p>
void CI_Session::keep_flashdata(mixed $key)
Keep flashdata
Legacy CI_Session compatibility method
- Visibility: public
- $key mixed - <p>Session data key(s)</p>
mixed CI_Session::tempdata(string $key)
Temp data (fetch)
Legacy CI_Session compatibility method
- Visibility: public
- $key string - <p>Session data key</p>
void CI_Session::set_tempdata(mixed $data, mixed $value, integer $ttl)
Set tempdata
Legacy CI_Session compatibility method
- Visibility: public
- $data mixed - <p>Session data key or an associative array of items</p>
- $value mixed - <p>Value to store</p>
- $ttl integer - <p>Time-to-live in seconds</p>
void CI_Session::unset_tempdata($key)
Unset tempdata
Legacy CI_Session compatibility method
- Visibility: public
- $key mixed