public function getCookie() { if ($this->_cookie === null) { $this->_cookie = new THttpCookie($this->getSessionName(), $this->getSessionID()); } return $this->_cookie; }