Remove suppression operator on session_start()

This was originally added to stop PHP on Windows complaining that it
couldn't garbage collect old sessions, but that was for an old version
of PHP years ago and doesn't seem to be an issue any longer. We
really shouldn't be suppressing this. If session_start() threw a
warning that it couldn't write to the filesystem, then we wouldn't
know about it at all.
This commit is contained in:
Sean Harvey 2014-08-21 17:30:03 +12:00
parent c4ea64e743
commit 0b5599e21b

View File

@ -376,10 +376,8 @@ class Session {
// seperate (less secure) session for non-HTTPS requests // seperate (less secure) session for non-HTTPS requests
if($secure) session_name('SECSESSID'); if($secure) session_name('SECSESSID');
// @ is to supress win32 warnings/notices when session wasn't cleaned up properly
// There's nothing we can do about this, because it's an operating system function!
if($sid) session_id($sid); if($sid) session_id($sid);
@session_start(); session_start();
$this->data = isset($_SESSION) ? $_SESSION : array(); $this->data = isset($_SESSION) ? $_SESSION : array();
} }