8000 [HttpFoundation] minor session-related fix · symfony/symfony@cf4eb46 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf4eb46

Browse files
[HttpFoundation] minor session-related fix
1 parent deb499e commit cf4eb46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ abstract class AbstractSessionHandler implements \SessionHandlerInterface, \Sess
3232
public function open($savePath, $sessionName)
3333
{
3434
$this->sessionName = $sessionName;
35-
if (!headers_sent() && !ini_get('session.cache_limiter')) {
35+
if (!headers_sent() && !ini_get('session.cache_limiter') && '0' !== ini_get('session.cache_limiter')) {
3636
header(sprintf('Cache-Control: max-age=%d, private, must-revalidate', 60 * (int) ini_get('session.cache_expire')));
3737
}
3838

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class NativeSessionStorage implements SessionStorageInterface
6060
* ("auto_start", is not supported as it tells PHP to start a session before
6161
* PHP starts to execute user-land code. Setting during runtime has no effect).
6262
*
63-
* cache_limiter, "private_no_expire" (use "0" to prevent headers from being sent entirely).
63+
* cache_limiter, "" (use "0" to prevent headers from being sent entirely).
6464
* cache_expire, "0"
6565
* cookie_domain, ""
6666
* cookie_httponly, ""

0 commit comments

Comments
 (0)
0