@@ -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 >
@@ -59,7 +59,8 @@ sessions, check their default configuration:
59
59
60
60
return static function (FrameworkConfig $framework) {
61
61
$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.
63
64
->enabled(true)
64
65
// ID of the service used for session storage
65
66
// NULL means that Symfony uses PHP default session mechanism
0 commit comments