Welcome Guest, Not a member yet? Register   Sign In
[ask] Flashdata problem
#1

[eluser]hudar[/eluser]
Hi,

I found something weird in CI flashdata session. I call a model function from controller, then on model function I set flashdata using :

Code:
$this->session->set_flashdata('msg', 'blablabal');

then when the model function return to controller, and then I just want to read the flashdata on controller with :

Code:
$data = $this->session->flashdata('msg');

But It is weird that $data is still empty. But when I refresh the page, so that controller get called again, the $data show the right result which is 'blabala'.

When logout, and try again, get empty again, then get right result again on second call.

Do anybody know, why is that?


Messages In This Thread
[ask] Flashdata problem - by El Forum - 04-13-2009, 08:22 PM
[ask] Flashdata problem - by El Forum - 04-13-2009, 08:42 PM
[ask] Flashdata problem - by El Forum - 04-13-2009, 09:16 PM
[ask] Flashdata problem - by El Forum - 04-13-2009, 09:25 PM
[ask] Flashdata problem - by El Forum - 04-14-2009, 03:15 AM
[ask] Flashdata problem - by El Forum - 04-14-2009, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB