@@ -17,15 +17,15 @@ sessions, check their default configuration:
1717
1818 # config/packages/framework.yaml
1919 framework:
20+ # Enables session support. Note that the session will ONLY be started if you read or write from it.
21+ # Remove or comment this section to explicitly disable session support.
2022 session:
21- # enables the support of sessions in the app
22- enabled: true
23- # ID of the service used for session storage.
23+ # ID of the service used for session storage
2424 # NULL means that Symfony uses PHP default session mechanism
2525 handler_id: null
2626 # improves the security of the cookies used for sessions
27- cookie_secure: ' auto'
28- cookie_samesite: ' lax'
27+ cookie_secure: auto
28+ cookie_samesite: lax
2929
3030 .. code-block:: xml
3131
@@ -40,13 +40,13 @@ sessions, check their default configuration:
4040
4141 <framework:config>
4242 <!--
43- enabled: enables the support of sessions in the app
43+ Enables session support. Note that the session will ONLY be started if you read or write from it.
44+ Remove or comment this section to explicitly disable session support.
4445 handler-id: ID of the service used for session storage
4546 NULL means that Symfony uses PHP default session mechanism
4647 cookie-secure and cookie-samesite: improves the security of the cookies used for sessions
4748 -->
48- <framework:session enabled="true"
49- handler-id="null"
49+ <framework:session handler-id="null"
5050 cookie-secure="auto"
5151 cookie-samesite="lax"/>
5252 </framework:config>
@@ -56,9 +56,9 @@ sessions, check their default configuration:
5656
5757 // config/packages/framework.php
5858 $container->loadFromExtension('framework', [
59+ // Enables session support. Note that the session will ONLY be started if you read or write from it.
60+ // Remove or comment this section to explicitly disable session support.
5961 'session' => [
60- // enables the support of sessions in the app
61- 'enabled' => true,
6262 // ID of the service used for session storage
6363 // NULL means that Symfony uses PHP default session mechanism
6464 'handler_id' => null,
0 commit comments