Skip to content

Commit eee8a30

Browse files
committed
minor symfony#10435 Improved the article about session flashes (javiereguiluz)
This PR was submitted for the 4.1 branch but it was merged into the 3.4 branch instead (closes symfony#10435). Discussion ---------- Improved the article about session flashes As discussed here symfony/demo#859 Not sure about the branch though. Commits ------- e6ce2f4 Improved the article about session flashes
2 parents c2ce5ec + e6ce2f4 commit eee8a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/avoid_session_start.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ access the flash messages:
2929

3030
.. code-block:: html+twig
3131

32-
{% if app.request.hasPreviousSession %}
32+
{% if app.request.method == 'POST' %}
3333
{% for message in app.flashes('notice') %}
3434
<div class="flash-notice">
3535
{{ message }}

0 commit comments

Comments
 (0)