codeigniter – Using Sessions – Creating a Session

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

if you want to reproduce, please indicate the source:
codeigniter – Using Sessions – Creating a Session - CodeDay