Tutorial by Examples

To Initialize a session, you can simply load it in your controller, this us usually placed inside the controller constructs, but it also can be autoloaded into the array found inside application/config/autoload.php: $this->load->library('session');
A session is simply an array consisting of the following user information: The user's unique Session ID (this is a statistically random string with very strong entropy, hashed with MD5 for portability, and regenerated (by default) every five minutes) The user's IP Address The user's User Agent ...

Page 1 of 1