@@ -190,6 +190,7 @@ Configuration
190190
191191* `session `_
192192
193+ * `cache_limiter `_
193194 * `cookie_domain `_
194195 * `cookie_httponly `_
195196 * `cookie_lifetime `_
@@ -1183,6 +1184,50 @@ cookie_path
11831184This determines the path to set in the session cookie. By default, it will
11841185use ``/ ``.
11851186
1187+ cache_limiter
1188+ .............
1189+
1190+ **type **: ``string `` or ``int `` **default **: ``'' ``
1191+
1192+ If set to ``0 ``, Symfony won't set any particular header related to the cache
1193+ and it will rely on the cache control method configured in the
1194+ `session.cache-limiter `_ PHP.ini option.
1195+
1196+ Unlike the other session options, ``cache_limiter `` is set as a regular
1197+ :doc: `container parameter </service_container/parameters >`:
1198+
1199+ .. configuration-block ::
1200+
1201+ .. code-block :: yaml
1202+
1203+ # app/config/services.yml
1204+ parameters :
1205+ session.storage.options :
1206+ cache_limiter : 0
1207+
1208+ .. code-block :: xml
1209+
1210+ <!-- app/config/services.xml -->
1211+ <?xml version =" 1.0" encoding =" UTF-8" ?>
1212+ <container xmlns =" http://symfony.com/schema/dic/services"
1213+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1214+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
1215+ https://symfony.com/schema/dic/services/services-1.0.xsd" >
1216+
1217+ <parameters >
1218+ <parameter key =" session.storage.options" type =" collection" >
1219+ <parameter key =" cache_limiter" >0</parameter >
1220+ </parameter >
1221+ </parameters >
1222+ </container >
1223+
1224+ .. code-block :: php
1225+
1226+ // app/config/services.php
1227+ $container->setParameter('session.storage.options', [
1228+ 'cache_limiter' => 0,
1229+ ]);
1230+
11861231 cookie_domain
11871232.............
11881233
@@ -2621,4 +2666,5 @@ to know their differences.
26212666.. _`default_socket_timeout` : https://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
26222667.. _`PEM formatted` : https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail
26232668.. _`haveibeenpwned.com` : https://haveibeenpwned.com/
2669+ .. _`session.cache-limiter` : https://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
26242670.. _`Microsoft NTLM authentication protocol` : https://docs.microsoft.com/en-us/windows/desktop/secauthn/microsoft-ntlm
0 commit comments