diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-05-28 01:13:36 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-05-28 01:13:36 +0200 |
commit | f547b66d6bf00040438ab3ba544bb55aab2f2bb5 (patch) | |
tree | af82eb8faf64fa85de8ddd67669fb28eb94748ea /lib/session | |
parent | e73c04501ebfe5d7e3f7895b349c941b7483ae6f (diff) | |
download | nextcloud-server-f547b66d6bf00040438ab3ba544bb55aab2f2bb5.tar.gz nextcloud-server-f547b66d6bf00040438ab3ba544bb55aab2f2bb5.zip |
check fix if session start is successfull
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; |