From 2647ce6a5ea4c3ace57a82762efd2b4168eb53c1 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 12 Apr 2009 12:19:08 +0000 Subject: [PATCH] patch #1863739 [auth] cache control missing (PHP-CGI), thanks to stmfd --- ChangeLog | 1 + libraries/auth/cookie.auth.lib.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 24eeffdc9..fa148e927 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - patch #2727250 Optimizations for PHP loops thanks to Haeber - bug #2650776 [import] SQL_MODE not saved during Partial Import +- patch #1863739 [auth] cache control missing (PHP-CGI), thanks to stmfd 3.1.4.0 (not yet released) + patch #1808339 [doc] Apache SSLOptions and StdEnvVars FAQ, diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 1b2d3501d..70484d278 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -684,6 +684,10 @@ function PMA_auth_fails() $conn_error = $GLOBALS['strCannotLogin']; } + // needed for PHP-CGI (not need for FastCGI or mod-php) + header('Cache-Control: no-store, no-cache, must-revalidate'); + header('Pragma: no-cache'); + PMA_auth(); } // end of the 'PMA_auth_fails()' function