diff options
-rw-r--r-- | framework/Web/THttpSession.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/THttpSession.php b/framework/Web/THttpSession.php index b96a977e..dd1cf854 100644 --- a/framework/Web/THttpSession.php +++ b/framework/Web/THttpSession.php @@ -127,7 +127,7 @@ class THttpSession extends TApplicationComponent implements IteratorAggregate,Ar if($this->_customStorage) session_set_save_handler(array($this,'_open'),array($this,'_close'),array($this,'_read'),array($this,'_write'),array($this,'_destroy'),array($this,'_gc')); if($this->_cookie!==null) - session_set_cookie_params($this->_cookie->getExpire(),$this->_cookie->getPath(),$this->_cookie->getDomain(),$this->_cookie->getSecure()); + session_set_cookie_params($this->_cookie->getExpire(),$this->_cookie->getPath(),$this->_cookie->getDomain(),$this->_cookie->getSecure(),$this->_cookie->getHttpOnly()); if(ini_get('session.auto_start')!=='1') session_start(); $this->_started=true; |