From 875010ee4070be4a5b75247c46a4cdb248d1fb9f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 8 Oct 2009 15:44:29 -0600 Subject: [PATCH] Fix potential session writing issue This allegedly was needed as of 5.0.5, but I first started to see the undesirable behavior as of 5.2.10/5.3. --- framework/SessionHandler/lib/Horde/SessionHandler.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/SessionHandler/lib/Horde/SessionHandler.php b/framework/SessionHandler/lib/Horde/SessionHandler.php index 3afd55710..3fa630e9e 100644 --- a/framework/SessionHandler/lib/Horde/SessionHandler.php +++ b/framework/SessionHandler/lib/Horde/SessionHandler.php @@ -151,6 +151,11 @@ class Horde_SessionHandler $_SESSION['sessionhandler'] = $curr_time + (ini_get('session.gc_maxlifetime') / 2); $this->_force = true; } + + /* This is necessary as of PHP 5.0.5 because objects are not available + * when the write() handler is called at the end of a session + * access. */ + session_write_close(); } /** -- 2.11.0