mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:abstract] correction of session handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user