check fix if session start is successfull

remotes/origin/stable6
Robin Appelman 13 years ago
parent e73c04501e
commit f547b66d6b
  1. 3
      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;

Loading…
Cancel
Save