[eluser]Oscar Dias[/eluser]
When you exit the session you can unset the userdata
Code:
$this->session->unset_userdata('uid');
Then when you check $this->session->userdata('uid') it will return false. If it returns the uid than the user did not exit the session.