Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5605263

Browse files
committed
minor #10590 Revert a change related to flash messages and sessions (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Revert a change related to flash messages and sessions This was done a few days ago (e6ce2f4) but there's an ongoing discussion about it in Symfony (symfony/symfony#28804) and some people are complaining on slack about the changed code. So let's revert for now to the original code. Commits ------- f96118b Revert a change related to flash messages and sessions
2 parents 6984951 + f96118b commit 5605263

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

0 commit comments

Comments
 (0)