Recently I have developed a web application with codeigniter. I am facing a session related problem there badly.
Problem scenario:
If user
Add a logout button.
Have that button destroy the session with CI's built in destroy function.
$this->session->sess_destroy();