Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Delete all session flash data without knowing flash name
  • Hello,
    Currently I'm setting Session flash_auto_expire as false in order to keep it values remain stored in the session in the next page request.
    It's ok to delete value using Session::delete_flash('flashName');
    But I want to know is there anyway to delete all flash data without knowing flash name?
  • philipptempelphilipptempel
    Accepted Answer
    If you took a look at the code e.g. here https://github.com/fuel/core/blob/1.8/develop/classes/session/driver.php#L367 you'd see that if you used \Session::delete_flash(null) it will delete all flash session.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion