diff options
| author | tof <> | 2008-03-27 16:04:47 +0000 | 
|---|---|---|
| committer | tof <> | 2008-03-27 16:04:47 +0000 | 
| commit | 87276530099acba2912aa4a5cd2048e02e3e7435 (patch) | |
| tree | 08149294582dc3193b8d511d7d7f4ec62bf1cc00 | |
| parent | 8c5d1e640a220a138294575c5770c7e9da0d46a3 (diff) | |
Ensure THttpSession has closed session before destructors are called
| -rw-r--r-- | framework/Web/THttpSession.php | 3 | 
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"));
  	}
  	/**
 | 
