From b9fe8fc6f8fa583ce6b88d8e059b0912c1f7b676 Mon Sep 17 00:00:00 2001 From: Crack Date: Tue, 5 Oct 2010 13:53:56 +0200 Subject: [PATCH] Warn if LoginCookieStore < LoginCookieValidity --- main.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.php b/main.php index dbf1da34f..0cd46f5a0 100644 --- a/main.php +++ b/main.php @@ -270,6 +270,13 @@ if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) { trigger_error(PMA_Message::decodeBB(__('Your PHP parameter [a@http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime@]session.gc_maxlifetime[/a] is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.')), E_USER_WARNING); } +/** + * Check whether LoginCookieValidity is limited by LoginCookieStore. + */ +if ($GLOBALS['cfg']['LoginCookieStore'] != 0 && $GLOBALS['cfg']['LoginCookieStore'] < $GLOBALS['cfg']['LoginCookieValidity']) { + trigger_error(PMA_Message::decodeBB(__('Login cookie store is lower that cookie validity configured in phpMyAdmin, because of this, your login will expire sooner than configured in phpMyAdmin.')), E_USER_WARNING); +} + /** * Check if user does not have defined blowfish secret and it is being used. */