I have a logout controller in codeigniter :
session->sess_de
You can also try manually setting your "logged_in" or whatever you called the session to false. Then, destroying all other session data.
$this->session->set_userdata('logged_in', FALSE); $this->session->session_destroy(); redirect('index');