diff --git a/ChangeLog b/ChangeLog index ba8c0d638..5ef197669 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,8 @@ $Source$ - pursuit the "stay on the sub-pages as long as needed" work. * db_details.php3; db_details_export.php3; db_details_strucuture.php3: pursuit the "stay on the sub-pages as long as needed" work. + * libraries/auth/cookie.auth.lib.php3, lines 386-392: fixed bug #551898 - + Cookie auth and cookies refused. 2002-05-02 Loïc Chapeaux * lang/*.inc.php3: cleanup. diff --git a/libraries/auth/cookie.auth.lib.php3 b/libraries/auth/cookie.auth.lib.php3 index 73f5f61dc..74a120f4a 100644 --- a/libraries/auth/cookie.auth.lib.php3 +++ b/libraries/auth/cookie.auth.lib.php3 @@ -383,6 +383,13 @@ if (uname.value == '') { $GLOBALS['is_https']); } // end if + // Force reload when cookies are created for the first time to ensure + // the client accept cookies + if (!$from_cookie) { + header('Location: ' . $cfg['PmaAbsoluteUri'] . 'index.php3?lang=' . $GLOBALS['lang'] . '&server=' . $server); + exit(); + } + return TRUE; } // end of the 'PMA_auth_set_user()' function