From 2a701547d5a6bcb9e17566a3eb1427b3ccc11e5a Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 7 Nov 2010 13:10:13 -0500 Subject: [PATCH] Revert "Better modified existence check" - this causes #9372 This reverts commit ed1757dce490773fb2de5ebadeabc8460ba447d7. --- framework/Core/lib/Horde/Session.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/framework/Core/lib/Horde/Session.php b/framework/Core/lib/Horde/Session.php index 60f2ca873..1b66caab5 100644 --- a/framework/Core/lib/Horde/Session.php +++ b/framework/Core/lib/Horde/Session.php @@ -106,10 +106,8 @@ class Horde_Session session_start(); /* Create internal data arrays. */ - if (!isset($_SESSION[self::MODIFIED])) { - /* Last modification time of session. - * This will cause the check below to always return true - * (time() >= 0) and will set the initial value */ + if (!isset($_SESSION[self::SERIALIZED])) { + /* Last modification time of session. */ $_SESSION[self::MODIFIED] = 0; /* Is this key serialized? */ @@ -125,7 +123,7 @@ class Horde_Session * we are accessing the server via a periodic mechanism (think * folder refreshing in IMP) that we will catch this refresh. */ $curr_time = time(); - if ($curr_time >= $_SESSION[self::MODIFIED]) { + if (!isset($_SESSION[self::MODIFIED]) || $curr_time >= $_SESSION[self::MODIFIED]) { $_SESSION[self::MODIFIED] = intval($curr_time + (ini_get('session.gc_maxlifetime') / 2)); $this->sessionHandler->changed = true; } -- 2.11.0