force sessions to use temp when unset

This commit is contained in:
Ad Schellevis 2021-11-19 13:38:12 +01:00
parent 641929ac12
commit 5776cb5e95
1 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,12 @@
*/
$conf = include __DIR__ . "/config.local.php";
ini_set('session.save_path',dirname(realpath(__FILE__)) . '/../temp');
if (empty(session_save_path())) {
// force sessions to use temp when unset
ini_set('session.save_path', sys_get_temp_dir());
}
// Always register OPNsense core libraries into package list
$conf->merge(new \Phalcon\Config(["environment" =>
["packages" => array(