From 87276530099acba2912aa4a5cd2048e02e3e7435 Mon Sep 17 00:00:00 2001 From: tof <> Date: Thu, 27 Mar 2008 16:04:47 +0000 Subject: Ensure THttpSession has closed session before destructors are called --- framework/Web/THttpSession.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web/THttpSession.php') diff --git a/framework/Web/THttpSession.php b/framework/Web/THttpSession.php index b9faea74..b778f56d 100644 --- a/framework/Web/THttpSession.php +++ b/framework/Web/THttpSession.php @@ -125,7 +125,8 @@ class THttpSession extends TApplicationComponent implements IteratorAggregate,Ar if($this->_autoStart) $this->open(); $this->_initialized=true; - $this->getApplication()->setSession($this); + $this->getApplication()->setSession($this); + register_shutdown_function(array($this, "close")); } /** -- cgit v1.2.3