summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authortof <>2008-03-27 16:04:47 +0000
committertof <>2008-03-27 16:04:47 +0000
commit87276530099acba2912aa4a5cd2048e02e3e7435 (patch)
tree08149294582dc3193b8d511d7d7f4ec62bf1cc00 /framework/Web
parent8c5d1e640a220a138294575c5770c7e9da0d46a3 (diff)
Ensure THttpSession has closed session before destructors are called
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/THttpSession.php3
1 files changed, 2 insertions, 1 deletions
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"));
}
/**