@@ -348,10 +348,13 @@ redirected to the ``default_target_path`` to avoid a redirection loop.
348
348
For historical reasons, and to match the misspelling of the HTTP standard,
349
349
the option is called ``use_referer `` instead of ``use_referrer ``.
350
350
351
- **Options Related to Logout Configuration **
351
+ logout
352
+ ~~~~~~
353
+
354
+ You can configure logout options.
352
355
353
356
delete_cookies
354
- ~~~~~~~~~~~~~~
357
+ ..............
355
358
356
359
**type **: ``array `` **default **: ``[] ``
357
360
@@ -498,7 +501,7 @@ It's also possible to use ``*`` as a wildcard for all directives:
498
501
The ``clear_site_data `` option was introduced in Symfony 6.3.
499
502
500
503
invalidate_session
501
- ~~~~~~~~~~~~~~~~~~
504
+ ..................
502
505
503
506
**type **: ``boolean `` **default **: ``true ``
504
507
@@ -511,14 +514,14 @@ option to ``false`` in every firewall and the user will only be logged out from
511
514
the current firewall and not the other ones.
512
515
513
516
``path ``
514
- ~~~~~~~~
517
+ ........
515
518
516
519
**type **: ``string `` **default **: ``/logout ``
517
520
518
521
The path which triggers logout. You need to set up a route with a matching path.
519
522
520
523
target
521
- ~~~~~~
524
+ ......
522
525
523
526
**type **: ``string `` **default **: ``/ ``
524
527
@@ -529,7 +532,7 @@ redirect after logout.
529
532
.. _reference-security-logout-csrf :
530
533
531
534
enable_csrf
532
- ~~~~~~~~~~~
535
+ ...........
533
536
534
537
**type **: ``boolean `` **default **: ``null ``
535
538
@@ -542,22 +545,22 @@ option if you need to use a custom CSRF token manager.
542
545
The ``enable_csrf `` option was introduced in Symfony 6.2.
543
546
544
547
csrf_parameter
545
- ~~~~~~~~~~~~~~
548
+ ..............
546
549
547
550
**type **: ``string `` **default **: ``'_csrf_token' ``
548
551
549
552
The name of the parameter that stores the CSRF token value.
550
553
551
554
csrf_token_manager
552
- ~~~~~~~~~~~~~~~~~~
555
+ ..................
553
556
554
557
**type **: ``string `` **default **: ``null ``
555
558
556
559
The ``id `` of the service used to generate the CSRF tokens. Symfony provides a
557
560
default service whose ID is ``security.csrf.token_manager ``.
558
561
559
562
csrf_token_id
560
- ~~~~~~~~~~~~~
563
+ .............
561
564
562
565
**type **: ``string `` **default **: ``'logout' ``
563
566
0 commit comments