Skip to content
Snippets Groups Projects
Commit f547b66d authored by Robin Appelman's avatar Robin Appelman
Browse files

check fix if session start is successfull

parent e73c0450
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment