summaryrefslogtreecommitdiffstats
path: root/lib/session
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-05-28 01:13:36 +0200
committerRobin Appelman <icewind@owncloud.com>2013-05-28 01:13:36 +0200
commitf547b66d6bf00040438ab3ba544bb55aab2f2bb5 (patch)
treeaf82eb8faf64fa85de8ddd67669fb28eb94748ea /lib/session
parente73c04501ebfe5d7e3f7895b349c941b7483ae6f (diff)
downloadnextcloud-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.php3
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;