mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
check fix if session start is successfull
This commit is contained in:
parent
e73c04501e
commit
f547b66d6b
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue