@@ -17,15 +17,15 @@ sessions, check their default configuration:
17
17
18
18
# config/packages/framework.yaml
19
19
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.
20
22
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
24
24
# NULL means that Symfony uses PHP default session mechanism
25
25
handler_id : null
26
26
# 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
29
30
30
.. code-block :: xml
31
31
@@ -40,13 +40,13 @@ sessions, check their default configuration:
40
40
41
41
<framework : config >
42
42
<!--
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.
44
45
handler-id: ID of the service used for session storage
45
46
NULL means that Symfony uses PHP default session mechanism
46
47
cookie-secure and cookie-samesite: improves the security of the cookies used for sessions
47
48
-->
48
- <framework : session enabled =" true"
49
- handler-id =" null"
49
+ <framework : session handler-id =" null"
50
50
cookie-secure =" auto"
51
51
cookie-samesite =" lax" />
52
52
</framework : config >
@@ -56,9 +56,9 @@ sessions, check their default configuration:
56
56
57
57
// config/packages/framework.php
58
58
$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.
59
61
'session' => [
60
- // enables the support of sessions in the app
61
- 'enabled' => true,
62
62
// ID of the service used for session storage
63
63
// NULL means that Symfony uses PHP default session mechanism
64
64
'handler_id' => null,
0 commit comments