diff --git a/ChangeLog b/ChangeLog index b3f04c279..28959a82b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA 3.1.1.0 (not yet released) - patch #2242765 [core] Navi panel server links wrong, thanks to Martin Stricker - martinstricker +- bug #2186823 [core] bad session.save_path not detected 3.1.0.0 (not yet released) + [auth] Support for Swekey hardware authentication, diff --git a/libraries/session.inc.php b/libraries/session.inc.php index 756f2523f..559b62f79 100644 --- a/libraries/session.inc.php +++ b/libraries/session.inc.php @@ -68,19 +68,10 @@ $session_name = 'phpMyAdmin'; @session_name($session_name); if (! isset($_COOKIE[$session_name])) { - // on first start of session we will check for errors + // on first start of session we check for errors // f.e. session dir cannot be accessed - session file not created - ob_start(); - $old_display_errors = ini_get('display_errors'); - $old_error_reporting = error_reporting(E_ALL); - @ini_set('display_errors', 1); $r = session_start(); - @ini_set('display_errors', $old_display_errors); - error_reporting($old_error_reporting); - unset($old_display_errors, $old_error_reporting); - $session_error = ob_get_contents(); - ob_end_clean(); - if ($r !== true || ! empty($session_error)) { + if ($r !== true || $GLOBALS['error_handler']->hasErrors()) { setcookie($session_name, '', 1); PMA_fatalError('strSessionStartupErrorGeneral'); }