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