codeigniter Using Sessions Creating a Session


Example

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');