Another problem when I open the session what will keep the error msg show me in the page

i haven't found the reason about this problem, what strange it!

see, when I make an error in the controller, for eg, I lost a variable, and the page will keep the error until I clear the session of page, why!

Did somebody trouble in this way or whether you know how to solve it? Thank you for your help, I am poor in english, don't mind please

Yunlong, thanks!


If you are using the flashSession class and is outputing the error messages with the output(); method, it has an optional boolean param that, if true, remove the error message from the session after it is outputed. So you would use it like $this->flashSession->output(true);