File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ Configuration
143
143
* `cookie_path `_
144
144
* `cookie_samesite `_
145
145
* `cookie_secure `_
146
+ * :ref: `enabled <reference-session-enabled >`
146
147
* `gc_divisor `_
147
148
* `gc_maxlifetime `_
148
149
* `gc_probability `_
@@ -952,6 +953,49 @@ session persists.
952
953
Starting in Symfony 3.4, session data is *only * written when the session data has
953
954
changed. Previously, you needed to set this option to avoid that behavior.
954
955
956
+ .. _reference-session-enabled :
957
+
958
+ enabled
959
+ .......
960
+
961
+ **type **: ``boolean `` **default **: ``true ``
962
+
963
+ Whether to enable the session support in the framework.
964
+
965
+ .. configuration-block ::
966
+
967
+ .. code-block :: yaml
968
+
969
+ # config/packages/framework.yaml
970
+ framework :
971
+ session :
972
+ enabled : true
973
+
974
+ .. code-block :: xml
975
+
976
+ <!-- config/packages/framework.xml -->
977
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
978
+ <container xmlns =" http://symfony.com/schema/dic/services"
979
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
980
+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
981
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
982
+ http://symfony.com/schema/dic/services/services-1.0.xsd
983
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
984
+
985
+ <framework : config >
986
+ <framework : session enabled =" true" />
987
+ </framework : config >
988
+ </container >
989
+
990
+ .. code-block :: php
991
+
992
+ // config/packages/framework.php
993
+ $container->loadFromExtension('framework', array(
994
+ 'session' => array(
995
+ 'enabled' => true,
996
+ ),
997
+ ));
998
+
955
999
assets
956
1000
~~~~~~
957
1001
You can’t perform that action at this time.
0 commit comments