Welcome Guest, Not a member yet? Register   Sign In
[FIXED] FlashData not reading back
#1

[eluser]mtbkrdave[/eluser]
Hello-

I'm trying to run TankAuth with CodeIgniter 2.0.3. TankAuth uses Flashdata to store a captcha value between the page request when the captcha challenge is generated, and the subsequent request where the user's response is evaluated.

TankAuth sets the flashdata using:

Code:
// Save captcha params in session
$this->session->set_flashdata(array(
    'captcha_word' => $cap['word'],
    'captcha_time' => $cap['time'],
));

Then reads them back in the next request using:

Code:
$time = $this->session->flashdata('captcha_time');
$word = $this->session->flashdata('captcha_word');

This seems fine. When I examine the browser cookie (with $config['sess_use_database'] set to FALSE) or look at the ci_sessions database contents (with $config['sess_use_database'] set to TRUE) the Flashdata appears to be saved correctly:

Code:
a:3:{s:22:"flash:old:captcha_word";s:8:"83FAP8NM";s:22:"flash:old:captcha_time";d:1315269306.21364307403564453125;}

But the calls to flashdata() above return empty results. How would I go about troubleshooting this further? Are there any config parameters that can adversely affect flashdata?

Many Thanks,
Dave




Theme © iAndrew 2016 - Forum software by © MyBB