diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 89fb53ed373..20ce1838f87 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -147,6 +147,7 @@ Configuration * `cookie_lifetime`_ * `cookie_path`_ * `cookie_secure`_ + * :ref:`enabled ` * `gc_divisor`_ * `gc_maxlifetime`_ * `gc_probability`_ @@ -959,6 +960,49 @@ session persists. Starting in Symfony 3.4, session data is *only* written when the session data has changed. Previously, you needed to set this option to avoid that behavior. +.. _reference-session-enabled: + +enabled +....... + +**type**: ``boolean`` **default**: ``true`` + +Whether to enable the session support in the framework. + +.. configuration-block:: + + .. code-block:: yaml + + # app/config/config.yml + framework: + session: + enabled: true + + .. code-block:: xml + + + + + + + + + + + .. code-block:: php + + // app/config/config.php + $container->loadFromExtension('framework', array( + 'session' => array( + 'enabled' => true, + ), + )); + assets ~~~~~~