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 @@ -141,6 +141,7 @@ Configuration
141
141
* `cookie_lifetime `_
142
142
* `cookie_path `_
143
143
* `cookie_secure `_
144
+ * :ref: `enabled <reference-session-enabled >`
144
145
* `gc_divisor `_
145
146
* `gc_maxlifetime `_
146
147
* `gc_probability `_
@@ -911,6 +912,49 @@ session persists.
911
912
Starting in Symfony 3.4, session data is *only * written when the session data has
912
913
changed. Previously, you needed to set this option to avoid that behavior.
913
914
915
+ .. _reference-session-enabled :
916
+
917
+ enabled
918
+ .......
919
+
920
+ **type **: ``boolean `` **default **: ``true ``
921
+
922
+ Whether to enable the session support in the framework.
923
+
924
+ .. configuration-block ::
925
+
926
+ .. code-block :: yaml
927
+
928
+ # app/config/config.yml
929
+ framework :
930
+ session :
931
+ enabled : true
932
+
933
+ .. code-block :: xml
934
+
935
+ <!-- app/config/config.xml -->
936
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
937
+ <container xmlns =" http://symfony.com/schema/dic/services"
938
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
939
+ xmlns : framework =" http://symfony.com/schema/dic/symfony"
940
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
941
+ http://symfony.com/schema/dic/services/services-1.0.xsd
942
+ http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
943
+
944
+ <framework : config >
945
+ <framework : session enabled =" true" />
946
+ </framework : config >
947
+ </container >
948
+
949
+ .. code-block :: php
950
+
951
+ // app/config/config.php
952
+ $container->loadFromExtension('framework', array(
953
+ 'session' => array(
954
+ 'enabled' => true,
955
+ ),
956
+ ));
957
+
914
958
assets
915
959
~~~~~~
916
960
You can’t perform that action at this time.
0 commit comments