Welcome Guest, Not a member yet? Register   Sign In
Session->destroy doesn't work when using Flash-sessions.
#1

[eluser]Slowcheetah[/eluser]
Why ALL the sessions stay alive when i execute the following code?

ALL SESSIONS STAY ALIVE??
Code:
function signout() {
        // destroy all sessions (username and password)
        $this->session->sess_destroy();
        // set user message
        $this->session->set_flashdata('msg', 'Succesfully signed out.');
        // Redirect to signin page
        redirect('');
    }

If i don't set the flash message the code works perfect, and all sessions get destroyed. But cannot report to user

ALL SESSIONS DESTROY SUCCESFULLY
Code:
function signout() {
        // destroy all sessions (username and password)
        $this->session->sess_destroy();
        // Redirect to signin page
        redirect('');
    }


Messages In This Thread
Session->destroy doesn't work when using Flash-sessions. - by El Forum - 08-16-2009, 06:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB