From f547b66d6bf00040438ab3ba544bb55aab2f2bb5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 28 May 2013 01:13:36 +0200 Subject: [PATCH] check fix if session start is successfull --- lib/session/internal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5