Skip to content
Snippets Groups Projects
Commit b688d287 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1375 from GPCsolutions/3.4-fixsessionpath

Handle default session path nicely
parents db5fe44b 78b40eaa
No related branches found
No related tags found
No related merge requests found
......@@ -557,7 +557,13 @@ function listOfSessions()
global $conf;
$arrayofSessions = array();
$sessPath = ini_get("session.save_path").'/';
// session.save_path can be returned empty so we set a default location and work from there
$sessPath = '/tmp';
$iniPath = ini_get("session.save_path");
if ($iniPath) {
$sessPath = $iniPath;
}
$sessPath .= '/'; // We need the trailing slash
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
$dh = @opendir(dol_osencode($sessPath));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment