summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-12-07 10:09:19 +0100
committerSimon Rettberg2018-12-07 10:09:19 +0100
commit51ef0363805f988b58ea738d4c11c04ef623d07a (patch)
treeb7b18ea4c42cc2ca8e1b05df3fb7dcece73e9973
parentImprove shibboleth eppn/affiliation handling (diff)
downloadbwlp-webadmin-51ef0363805f988b58ea738d4c11c04ef623d07a.tar.gz
bwlp-webadmin-51ef0363805f988b58ea738d4c11c04ef623d07a.tar.xz
bwlp-webadmin-51ef0363805f988b58ea738d4c11c04ef623d07a.zip
[inc/Session] Don't suppress setcookie errors
-rw-r--r--inc/session.inc.php4
1 files 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)');
}