diff options
Diffstat (limited to 'lib/session')
-rw-r--r-- | lib/session/internal.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/session/internal.php b/lib/session/internal.php index 1f8fda47a9b..60aecccc8aa 100644 --- a/lib/session/internal.php +++ b/lib/session/internal.php @@ -18,7 +18,8 @@ namespace OC\Session; class Internal extends Memory { public function __construct($name) { session_name($name); - if (@session_start()) { + session_start(); + if (!isset($_SESSION)) { throw new \Exception('Failed to start session'); } $this->data = $_SESSION; |