how to use session in codeigniter code example
Example 1: print all session in codeigniter
print_r($this->session->userdata);
or
print_r($this->session->all_userdata());
Example 2: how to free session variable in php codeigniter
$this->session->unset_userdata('some_name');