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
141141 * `cookie_lifetime `_
142142 * `cookie_path `_
143143 * `cookie_secure `_
144+ * :ref: `enabled <reference-session-enabled >`
144145 * `gc_divisor `_
145146 * `gc_maxlifetime `_
146147 * `gc_probability `_
@@ -911,6 +912,49 @@ session persists.
911912Starting in Symfony 3.4, session data is *only * written when the session data has
912913changed. Previously, you needed to set this option to avoid that behavior.
913914
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+
914958 assets
915959~~~~~~
916960
You can’t perform that action at this time.
0 commit comments