fixed bug #551898 - Cookie auth and cookies refused

This commit is contained in:
Loïc Chapeaux
2002-05-03 15:47:41 +00:00
parent c73b0a952b
commit 535d565ed0
2 changed files with 9 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ $Source$
- pursuit the "stay on the sub-pages as long as needed" work. - pursuit the "stay on the sub-pages as long as needed" work.
* db_details.php3; db_details_export.php3; db_details_strucuture.php3: * db_details.php3; db_details_export.php3; db_details_strucuture.php3:
pursuit the "stay on the sub-pages as long as needed" work. 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<4C>c Chapeaux <lolo@phpheaven.net> 2002-05-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lang/*.inc.php3: cleanup. * lang/*.inc.php3: cleanup.

View File

@@ -383,6 +383,13 @@ if (uname.value == '') {
$GLOBALS['is_https']); $GLOBALS['is_https']);
} // end if } // 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; return TRUE;
} // end of the 'PMA_auth_set_user()' function } // end of the 'PMA_auth_set_user()' function