diff options
author | xue <> | 2006-03-09 14:11:00 +0000 |
---|---|---|
committer | xue <> | 2006-03-09 14:11:00 +0000 |
commit | 69d5556c6d823e5d0b4e0517aa44fbc5030030cd (patch) | |
tree | 6a94632049d944e85d1fe83187b094e687fd3cb1 | |
parent | 9c0b2dd9ab41b5143fbc1ac5318509d9b626f23a (diff) |
Fixed a problem about session starting.
-rw-r--r-- | demos/personal/protected/application.xml | 2 | ||||
-rw-r--r-- | framework/Web/THttpSession.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/demos/personal/protected/application.xml b/demos/personal/protected/application.xml index e8189eb0..48fa0490 100644 --- a/demos/personal/protected/application.xml +++ b/demos/personal/protected/application.xml @@ -9,7 +9,9 @@ <!-- Remove this comment mark to enable PATH url format
<module id="request" class="THttpRequest" UrlFormat="Path" />
-->
+ <!--
<module id="session" class="THttpSession" />
+ -->
<module id="log" class="System.Log.TLogRouter">
<route class="TBrowserLogRoute" Categories="System" />
<route class="TFileLogRoute" Categories="System" Levels="Notice,Warning,Error,Alert,Fatal" />
diff --git a/framework/Web/THttpSession.php b/framework/Web/THttpSession.php index ad7d272a..97ab6b08 100644 --- a/framework/Web/THttpSession.php +++ b/framework/Web/THttpSession.php @@ -103,7 +103,7 @@ class THttpSession extends TApplicationComponent implements IteratorAggregate,Ar public function init($config)
{
if($this->_autoStart)
- session_start();
+ $this->open();
$this->_initialized=true;
$this->getApplication()->setSession($this);
}
|