@@ -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 >
@@ -59,7 +59,8 @@ sessions, check their default configuration:
5959
6060 return static function (FrameworkConfig $framework) {
6161 $framework->session()
62- // enables the support of sessions in the app
62+ // Enables session support. Note that the session will ONLY be started if you read or write from it.
63+ // Remove or comment this section to explicitly disable session support.
6364 ->enabled(true)
6465 // ID of the service used for session storage
6566 // NULL means that Symfony uses PHP default session mechanism
0 commit comments