From 51ef0363805f988b58ea738d4c11c04ef623d07a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 7 Dec 2018 10:09:19 +0100 Subject: [inc/Session] Don't suppress setcookie errors --- inc/session.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/session.inc.php b/inc/session.inc.php index 93c33e5..17e3184 100644 --- a/inc/session.inc.php +++ b/inc/session.inc.php @@ -87,7 +87,7 @@ class Session { if (self::$sid === false) return; Database::exec('DELETE FROM websession WHERE sid = :sid', array('sid' => self::$sid)); - @setcookie('sid', '', time() - CONFIG_SESSION_TIMEOUT, null, null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); + setcookie('sid', '', time() - CONFIG_SESSION_TIMEOUT, null, null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); self::$sid = false; self::$data = false; } @@ -103,7 +103,7 @@ class Session array('sid' => self::$sid, 'data' => $data)); if ($ret === false) Util::traceError('Storing session data in Dahdähbank failed.'); - $ret = @setcookie('sid', self::$sid, time() + CONFIG_SESSION_TIMEOUT, null, null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); + $ret = setcookie('sid', self::$sid, time() + CONFIG_SESSION_TIMEOUT, null, null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); if ($ret === false) Util::traceError('Error: Could not set Cookie for Client (headers already sent)'); } -- cgit v1.2.3-55-g7522