mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c4ea64e743
commit
0b5599e21b
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user