@@ -142,6 +142,7 @@ Configuration
142142
143143* `session `_
144144
145+ * `cache_limiter `_
145146 * `cookie_domain `_
146147 * `cookie_httponly `_
147148 * `cookie_lifetime `_
@@ -867,6 +868,50 @@ cookie_path
867868This determines the path to set in the session cookie. By default, it will
868869use ``/ ``.
869870
871+ cache_limiter
872+ .............
873+
874+ **type **: ``string `` or ``int `` **default **: ``'' ``
875+
876+ If set to ``0 ``, Symfony won't set any particular header related to the cache
877+ and it will rely on the cache control method configured in the
878+ `session.cache-limiter `_ PHP.ini option.
879+
880+ Unlike the other session options, ``cache_limiter `` is set as a regular
881+ :doc: `container parameter </service_container/parameters >`:
882+
883+ .. configuration-block ::
884+
885+ .. code-block :: yaml
886+
887+ # app/config/services.yml
888+ parameters :
889+ session.storage.options :
890+ cache_limiter : 0
891+
892+ .. code-block :: xml
893+
894+ <!-- app/config/services.xml -->
895+ <?xml version =" 1.0" encoding =" UTF-8" ?>
896+ <container xmlns =" http://symfony.com/schema/dic/services"
897+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
898+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
899+ https://symfony.com/schema/dic/services/services-1.0.xsd" >
900+
901+ <parameters >
902+ <parameter key =" session.storage.options" type =" collection" >
903+ <parameter key =" cache_limiter" >0</parameter >
904+ </parameter >
905+ </parameters >
906+ </container >
907+
908+ .. code-block :: php
909+
910+ // app/config/services.php
911+ $container->setParameter('session.storage.options', [
912+ 'cache_limiter' => 0,
913+ ]);
914+
870915 cookie_domain
871916.............
872917
@@ -2332,3 +2377,4 @@ to know their differences.
23322377.. _`blue/green deployment` : http://martinfowler.com/bliki/BlueGreenDeployment.html
23332378.. _`gulp-rev` : https://www.npmjs.com/package/gulp-rev
23342379.. _`webpack-manifest-plugin` : https://www.npmjs.com/package/webpack-manifest-plugin
2380+ .. _`session.cache-limiter` : https://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
0 commit comments