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 @@ -147,6 +147,7 @@ Configuration
147
147
* `cookie_lifetime `_
148
148
* `cookie_path `_
149
149
* `cookie_secure `_
150
+ * :ref: `enabled <reference-session-enabled >`
150
151
* `gc_divisor `_
151
152
* `gc_maxlifetime `_
152
153
* `gc_probability `_
@@ -959,6 +960,49 @@ session persists.
959
960
Starting in Symfony 3.4, session data is *only * written when the session data has
960
961
changed. Previously, you needed to set this option to avoid that behavior.
961
962
963
+ .. _reference-session-enabled :
964
+
965
+ enabled
966
+ .......
967
+
968
+ **type **: ``boolean `` **default **: ``true ``
969
+
970
+ Whether to enable the session support in the framework.
971
+
972
+ .. configuration-block ::
973
+
974
+ .. code-block :: yaml
975
+
976
+ # app/config/config.yml
977
+ framework :
978
+ session :
979
+ enabled : true
980
+
981
+ .. code-block :: xml
982
+
983
+ <!-- app/config/config.xml -->
984
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
985
+ <container xmlns =" http://symfony.com/schema/dic/services"
986
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
987
+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
988
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
989
+ http://symfony.com/schema/dic/services/services-1.0.xsd
990
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
991
+
992
+ <framework : config >
993
+ <framework : session enabled =" true" />
994
+ </framework : config >
995
+ </container >
996
+
997
+ .. code-block :: php
998
+
999
+ // app/config/config.php
1000
+ $container->loadFromExtension('framework', array(
1001
+ 'session' => array(
1002
+ 'enabled' => true,
1003
+ ),
1004
+ ));
1005
+
962
1006
assets
963
1007
~~~~~~
964
1008
You can’t perform that action at this time.
0 commit comments