$this->session->userdat('id') not showing current id of table in Code code example
Example: how to free session variable in php codeigniter
$this->session->unset_userdata('some_name');
$this->session->unset_userdata('some_name');