Properly initialize session cookie params.

This was mistakenly commented out. We can also use httponly parameter
instead of injecting it manually because PHP >= 5.2.0 supports it.
This commit is contained in:
Michal Čihař
2010-01-21 13:01:27 +00:00
parent 0b15e478d7
commit b29ef818d9

View File

@@ -31,8 +31,8 @@ if (!@function_exists('session_name')) {
//ini_set('session.auto_start', 0);
// session cookie settings
//session_set_cookie_params(0, PMA_Config::getCookiePath() . '; HttpOnly',
// '', PMA_Config::isHttps());
session_set_cookie_params(0, $GLOBALS['PMA_Config']->getCookiePath(),
'', $GLOBALS['PMA_Config']->isHttps(), true);
// cookies are safer (use @ini_set() in case this function is disabled)
@ini_set('session.use_cookies', true);