Skip to content

Commit e66aac7

Browse files
committed
link to the cookbook article on avoiding to start a session
1 parent a3e2469 commit e66aac7

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)