@@ -17,15 +17,16 @@ 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
29+ storage_factory_id : session.storage.factory.native
2930
3031 .. code-block :: xml
3132
@@ -40,15 +41,16 @@ sessions, check their default configuration:
4041
4142 <framework : config >
4243 <!--
43- enabled: enables the support of sessions in the app
44+ Enables session support. Note that the session will ONLY be started if you read or write from it.
45+ Remove or comment this section to explicitly disable session support.
4446 handler-id: ID of the service used for session storage
4547 NULL means that Symfony uses PHP default session mechanism
4648 cookie-secure and cookie-samesite: improves the security of the cookies used for sessions
4749 -->
48- <framework : session enabled =" true"
49- handler-id =" null"
50+ <framework : session handler-id =" null"
5051 cookie-secure =" auto"
51- cookie-samesite =" lax" />
52+ cookie-samesite =" lax"
53+ storage_factory_id =" session.storage.factory.native" />
5254 </framework : config >
5355 </container >
5456
@@ -59,14 +61,16 @@ sessions, check their default configuration:
5961
6062 return static function (FrameworkConfig $framework) {
6163 $framework->session()
62- // enables the support of sessions in the app
64+ // Enables session support. Note that the session will ONLY be started if you read or write from it.
65+ // Remove or comment this section to explicitly disable session support.
6366 ->enabled(true)
6467 // ID of the service used for session storage
6568 // NULL means that Symfony uses PHP default session mechanism
6669 ->handlerId(null)
6770 // improves the security of the cookies used for sessions
6871 ->cookieSecure('auto')
6972 ->cookieSamesite('lax')
73+ ->storage_factory_id('session.storage.factory.native')
7074 ;
7175 };
7276
0 commit comments