Skip to content

Commit a6b0c60

Browse files
committed
minor #10284 Documented the "auto" mode of "cookie_secure" (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Documented the "auto" mode of "cookie_secure" This fixes #10283. Commits ------- af62658 Documented the "auto" mode of "cookie_secure"
2 parents 984c3ef + af62658 commit a6b0c60

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

reference/configuration/framework.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,14 @@ The possible values for this option are:
852852
cookie_secure
853853
.............
854854

855-
**type**: ``boolean`` **default**: ``false``
855+
**type**: ``boolean`` or ``string`` **default**: ``'auto'``
856+
857+
This determines whether cookies should only be sent over secure connections. The
858+
default value is ``auto``, which means ``true`` for HTTPS requests and ``false``
859+
for HTTP requests.
856860

857-
This determines whether cookies should only be sent over secure connections.
861+
.. versionadded:: 4.2
862+
The ``auto`` value was introduced in Symfony 4.2.
858863

859864
cookie_httponly
860865
...............

0 commit comments

Comments
 (0)