From: Michael M Slusarz Date: Thu, 8 Oct 2009 21:44:29 +0000 (-0600) Subject: Fix potential session writing issue X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=875010ee4070be4a5b75247c46a4cdb248d1fb9f;p=horde.git 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. --- 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(); } /**