Welcome Guest, Not a member yet? Register   Sign In
flashdata lost
#1

[eluser]caprican[/eluser]
I have two functions in my controller, let's call them confirm and proceed. Proceed can be called only after confirm's been called ... so I use flashdata to do the following:

Code:
public function confirm() {
    ...
    $this->session->set_flashdata('confirmed', 'yes');
    ...
}

public function proceed()
{
    ...
    if($this->session->flashdata('confirmed') == 'yes') {
        ...
        $this->session->set_flashdata('confirmed', 'yes');
        // do something
        ...
    }
    else {
        // do something
    }
}

I set the flashdata again in proceed function because I want users to be able to refresh the page while on proceed and still be able to access it.

The code worked for few days before today I found it not working anymore. Users are still able to access proceed right away from confirm but when they refresh the proceed page, the flashdata return FALSE.

Can anyone please tell me if there is anything wrong with the codes? Can't I re-set the flashdata?

Thank you.


Messages In This Thread
flashdata lost - by El Forum - 03-30-2010, 06:24 AM
flashdata lost - by El Forum - 03-30-2010, 06:37 AM
flashdata lost - by El Forum - 03-30-2010, 06:41 AM
flashdata lost - by El Forum - 04-01-2010, 01:06 PM
flashdata lost - by El Forum - 04-01-2010, 02:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB