Skip to content

Commit

Permalink
If session_save_path() returns '', use sys_get_temp_dir()
Browse files Browse the repository at this point in the history
resolves #8994
  • Loading branch information
Al2Klimov committed Apr 22, 2015
1 parent 1daecbb commit 9cd7765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Web/Session/PhpSession.php
Expand Up @@ -77,7 +77,7 @@ public function __construct(array $options = null)
}
}

$sessionSavePath = session_save_path();
$sessionSavePath = session_save_path() ?: sys_get_temp_dir();
if (session_module_name() === 'files' && !is_writable($sessionSavePath)) {
throw new ConfigurationError("Can't save session, path '$sessionSavePath' is not writable.");
}
Expand Down

0 comments on commit 9cd7765

Please sign in to comment.