diff --git a/components/http_foundation/sessions.rst b/components/http_foundation/sessions.rst index 0034963f331..a9d449d0a2a 100644 --- a/components/http_foundation/sessions.rst +++ b/components/http_foundation/sessions.rst @@ -18,6 +18,10 @@ implementation of :class:`Symfony\\Component\\HttpFoundation\\Session\\SessionIn class. If you have a legacy session system that starts your session, see :doc:`Legacy Sessions `. +.. caution:: + + The Session is started automatically as soon as a form using :doc:`CSRF protection ` is rendered. + Quick example:: use Symfony\Component\HttpFoundation\Session\Session;