Sessions in CodeIgniter are the classes that help maintain a user's "state" and track their activity when they browse the website.
To use the session, the Session class is to be loaded in the controller.
$this->load->library(‘session’);
sessions in Codeigniter use this method.
$this->load->library('session');
The Sessions library object will be available to use once the files are loaded :