diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 9db231e3f4..84df7b4d85 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1004,6 +1004,7 @@ class baseRouter array($ztSessionHandler, "destroy"), array($ztSessionHandler, "gc") ); + register_shutdown_function('session_write_close'); } } @@ -3167,7 +3168,6 @@ class ztSessionHandler { $this->tagID = $tagID; ini_set('session.save_handler', 'files'); - register_shutdown_function('session_write_close'); } /**