File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
components/http_foundation Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,20 @@ method.
102
102
103
103
For the sake of clarity, some key options are explained in this documentation.
104
104
105
+ .. note ::
106
+
107
+ If you rely on Session settings set outside
108
+ :class: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Storage\\ NativeSessionStorage `, be aware the
109
+ constructor sets ``session.cache_limiter `` to ``"" ``. If you rely on native sessions to manage cache
110
+ headers, you *must * at least pass this option to the constructor.
111
+
112
+ Example usage::
113
+
114
+ use Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage;
115
+
116
+ $options['cache_limiter'] = session_cache_limiter();
117
+ $storage = new NativeSessionStorage($options);
118
+
105
119
Session Cookie Lifetime
106
120
~~~~~~~~~~~~~~~~~~~~~~~
107
121
You can’t perform that action at this time.
0 commit comments