Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b7e3d commit 662bb01Copy full SHA for 662bb01
book/forms.rst
@@ -1783,6 +1783,11 @@ The ``_token`` field is a hidden field and will be automatically rendered
1783
if you include the ``form_end()`` function in your template, which ensures
1784
that all un-rendered fields are output.
1785
1786
+.. caution::
1787
+
1788
+ Since the token is stored in the session, a session is started automatically
1789
+ as soon as you render a form with CSRF protection.
1790
1791
The CSRF token can be customized on a form-by-form basis. For example::
1792
1793
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
0 commit comments