We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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!



11.2k

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);