[eluser]fry.fr[/eluser]
Hello!
I'm using Codeigniter for a while now and got into a problem I just can't find a solution for.
The application I'm working on uses Flashdata to display error messages to the user.
Here is the code example:
Code:
$info_message['type'] = 'error';
$info_message['message']= 'Es ist ein Fehler aufgetreten, bitte versuche es noch einmal.';
$this->session->set_flashdata($info_message);
redirect('groups');
On the "groups" page the error message should be displayed, but it's not there. If a browser refresh is performed, the message appears.
This error occurs often, but not always, sometimes the message appears as expected without the manual browser refresh. It seems to have a connection to the page loading speed, if the page loads instantly the error message is not there, if the page loads last a few milliseconds the flashdata message is there on the first request.
As you can see I'm using the redirect, so there should be a new request.
Using redirect('groups', 'refresh') does not change this behaviour.
Thanks for your help.