patch #2075263 [auth] Single sign-on and cookie clearing

This commit is contained in:
Marc Delisle
2008-09-02 16:44:02 +00:00
parent e5d28fd859
commit 300ac33342
2 changed files with 6 additions and 4 deletions

View File

@@ -84,6 +84,8 @@ danbarry
- [core] safer handling of temporary files with open_basedir (thanks to Thijs Kinkhorst)
+ [lang] Czech update
- bug #2066923 [display] Navi browse icon does not go to page 1
- patch #2075263 [auth] Single sign-on and cookie clearing,
thanks to Charles Suh - cws125
2.11.9.0 (2008-08-28)
- bug #2031221 [auth] Links to version number on login screen

View File

@@ -240,13 +240,13 @@ if (function_exists('get_magic_quotes_gpc') && -1 == version_compare(PHP_VERSION
}
/**
* clean cookies on new install or upgrade
* when changing something with increment the cookie version
* clean cookies on upgrade
* when changing something related to PMA cookies, increment the cookie version
*/
$pma_cookie_version = 4;
if (isset($_COOKIE)
&& (! isset($_COOKIE['pmaCookieVer'])
|| $_COOKIE['pmaCookieVer'] < $pma_cookie_version)) {
&& (isset($_COOKIE['pmaCookieVer'])
&& $_COOKIE['pmaCookieVer'] < $pma_cookie_version)) {
// delete all cookies
foreach($_COOKIE as $cookie_name => $tmp) {
PMA_removeCookie($cookie_name);