[VD:abstract] correction of session handling

This commit is contained in:
nao-pon
2016-01-11 21:42:10 +09:00
parent e0b85418b5
commit a1afb12c1e
+3 -7
View File
@@ -218,16 +218,12 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
// error
// cache to $_SESSION
$sessionClose = true;;
try {
$sessionStart = session_start();
} catch (Exception $e) {
$sessionClose = false;
}
} catch (Exception $e) {}
if ($sessionStart) {
$this->sessionCache = &$_SESSION[elFinder::$sessionCacheKey][$this->id];
$this->sessionCache['localFileSystemInotify_disable'] = true;
$sessionClose && session_write_close();
$_SESSION[elFinder::$sessionCacheKey][$this->id]['localFileSystemInotify_disable'] = true;
session_write_close();
}
return false;