Welcome Guest, Not a member yet? Register   Sign In
Help on logout on CI 2.0.2
#1

[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...


Messages In This Thread
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 08:24 AM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 10:19 AM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 11:58 AM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 01:48 PM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 02:06 PM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 02:35 PM
Help on logout on CI 2.0.2 - by El Forum - 05-19-2011, 10:39 PM
Help on logout on CI 2.0.2 - by El Forum - 05-20-2011, 02:50 AM
Help on logout on CI 2.0.2 - by El Forum - 05-20-2011, 06:50 AM
Help on logout on CI 2.0.2 - by El Forum - 05-20-2011, 12:34 PM
Help on logout on CI 2.0.2 - by El Forum - 05-20-2011, 02:58 PM
Help on logout on CI 2.0.2 - by El Forum - 05-21-2011, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB