@@ -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
@@ -426,7 +429,7 @@ user logs out::
426
429
]);
427
430
428
431
invalidate_session
429
- ~~~~~~~~~~~~~~~~~~
432
+ ..................
430
433
431
434
**type **: ``boolean `` **default **: ``true ``
432
435
@@ -439,14 +442,14 @@ option to ``false`` in every firewall and the user will only be logged out from
439
442
the current firewall and not the other ones.
440
443
441
444
``path ``
442
- ~~~~~~~~
445
+ ........
443
446
444
447
**type **: ``string `` **default **: ``/logout ``
445
448
446
449
The path which triggers logout. You need to set up a route with a matching path.
447
450
448
451
target
449
- ~~~~~~
452
+ ......
450
453
451
454
**type **: ``string `` **default **: ``/ ``
452
455
@@ -457,7 +460,7 @@ redirect after logout.
457
460
.. _reference-security-logout-csrf :
458
461
459
462
enable_csrf
460
- ~~~~~~~~~~~
463
+ ...........
461
464
462
465
**type **: ``boolean `` **default **: ``null ``
463
466
@@ -470,22 +473,22 @@ option if you need to use a custom CSRF token generator.
470
473
The ``enable_csrf `` option was introduced in Symfony 6.2.
471
474
472
475
csrf_parameter
473
- ~~~~~~~~~~~~~~
476
+ ..............
474
477
475
478
**type **: ``string `` **default **: ``'_csrf_token' ``
476
479
477
480
The name of the parameter that stores the CSRF token value.
478
481
479
482
csrf_token_generator
480
- ~~~~~~~~~~~~~~~~~~~~
483
+ ....................
481
484
482
485
**type **: ``string `` **default **: ``null ``
483
486
484
487
The ``id `` of the service used to generate the CSRF tokens. Symfony provides a
485
488
default service whose ID is ``security.csrf.token_manager ``.
486
489
487
490
csrf_token_id
488
- ~~~~~~~~~~~~~
491
+ .............
489
492
490
493
**type **: ``string `` **default **: ``'logout' ``
491
494
0 commit comments