[eluser]spaquet[/eluser]
Here is the logout function:
Code:
public function logout() {
$this->session->sess_destroy();
redirect('/');
}
First: I'm getting the following error
Quote:Message: Undefined property: Logout::$session
which is pretty strange since session is loaded and running properly on the login page and main pages of the site...
Second: when I'm just doing a session data cleanup the following way:
Code:
$this->_remove_session($this->session->all_userdata());
redirection is not happening. I'm getting a white page with no code in while I want it to be the home page (in my cas the login form)..
I tried
Quote:redirect('login/index')
but this did not change anything...