{% if app.request.hasPreviousSession %} {% set flashbag = app.session.flashbag.all() %} {% if flashbag|length %}
{% for type, messages in flashbag %} {% for message in messages %} {% endfor %} {% endfor %}
{% endif %} {% endif %}