_session = new Zend_Session_Namespace("openid"); } else { $this->_session = $session; } } /** * Stores information about logged in user in session data * * @param string $id user identity URL * @return bool */ public function setLoggedInUser($id) { $this->_session->logged_in = $id; return true; } /** * Returns identity URL of logged in user or false * * @return mixed */ public function getLoggedInUser() { if (isset($this->_session->logged_in)) { return $this->_session->logged_in; } return false; } /** * Performs logout. Clears information about logged in user. * * @return bool */ public function delLoggedInUser() { unset($this->_session->logged_in); return true; } }