Added some checks around the configuration of PHP sessions since it seems to cause a lot of troubles.

SVN:trunk[2549]
This commit is contained in:
Denis Flaven
2012-12-07 10:57:46 +00:00
parent a651105675
commit b00b8dc05a

View File

@@ -302,6 +302,8 @@ class SetupUtils
if (ini_get('session.save_handler') == 'files')
{
$sSavePath = ini_get('session.save_path');
SetupPage::log("Info - session.save_path is: '$sSavePath'.");
// According to the PHP documentation, the format can be /path/where/to_save_sessions or "N;/path/where/to_save_sessions" or "N;MODE;/path/where/to_save_sessions"
$sSavePath = ltrim(rtrim($sSavePath, '"'), '"'); // remove surrounding quotes (if any)