Skip to content

Commit 6d1703b

Browse files
Toflarnicolas-grekas
authored andcommitted
[HttpKernel] Call Response->setPrivate() instead of sending raw header() when session is started
1 parent 0a09ec5 commit 6d1703b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ private function registerSessionConfiguration(array $config, ContainerBuilder $c
825825

826826
// session storage
827827
$container->setAlias('session.storage', $config['storage_id'])->setPrivate(true);
828-
$options = array();
828+
$options = array('cache_limiter' => '0');
829829
foreach (array('name', 'cookie_lifetime', 'cookie_path', 'cookie_domain', 'cookie_secure', 'cookie_httponly', 'use_cookies', 'gc_maxlifetime', 'gc_probability', 'gc_divisor', 'use_strict_mode') as $key) {
830830
if (isset($config[$key])) {
831831
$options[$key] = $config[$key];

0 commit comments

Comments
 (0)