Skip to content

Commit 0adb6f6

Browse files
committed
minor #4964 link to the cookbook article on avoiding to start a session (dbu)
This PR was merged into the 2.3 branch. Discussion ---------- link to the cookbook article on avoiding to start a session resolve the todo now that #4661 is merged Commits ------- e66aac7 link to the cookbook article on avoiding to start a session
2 parents 6d65564 + e66aac7 commit 0adb6f6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cookbook/cache/varnish.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,10 @@ If you know for sure that the backend never uses sessions or basic
7272
authentication, have varnish remove the corresponding header from requests to
7373
prevent clients from bypassing the cache. In practice, you will need sessions
7474
at least for some parts of the site, e.g. when using forms with
75-
:ref:`CSRF Protection <forms-csrf>`. In this situation, make sure to only
76-
start a session when actually needed, and clear the session when it is no
77-
longer needed. Alternatively, you can look into :doc:`../cache/form_csrf_caching`.
78-
79-
.. todo link "only start a session when actually needed" to cookbook/session/avoid_session_start once https://github.com/symfony/symfony-docs/pull/4661 is merged
75+
:ref:`CSRF Protection <forms-csrf>`. In this situation, make sure to
76+
:doc:`only start a session when actually needed </cookbook/session/avoid_session_start>`
77+
and clear the session when it is no longer needed. Alternatively, you can look
78+
into :doc:`/cookbook/cache/form_csrf_caching`.
8079

8180
Cookies created in Javascript and used only in the frontend, e.g. when using
8281
Google analytics are nonetheless sent to the server. These cookies are not

0 commit comments

Comments
 (0)