Skip to content

Commit

Permalink
docs: add warning on redirect()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 7, 2023
1 parent fc169d9 commit 79ec269
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_guide_src/source/libraries/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ may alter this behavior by editing the following config parameter value in

.. literalinclude:: security/004.php

.. warning:: If you use Cookie based CSRF protection, and :php:func:`redirect()`
after the submission, you must call ``withCookie()`` to send the regenerated
CSRF cookie. See :ref:`response-redirect` for details.

.. note:: Since v4.2.3, you can regenerate CSRF token manually with the
``Security::generateHash()`` method.

Expand Down

0 comments on commit 79ec269

Please sign in to comment.