protected function getAuthService() { if (!isset($this->services['auth'])) { $ns = new Zend_Session_Namespace('amember_auth'); if (Zend_Session::isWritable() && !empty($this->services['config'])) { $ns->setExpirationSeconds($this->config->get('login_session_lifetime', 120) * 60); } $this->services['auth'] = new Am_Auth_User($ns, $this); } return $this->services['auth']; }
/** * Zend_Session::isWritable encapsulation * * @return boolean */ public static function isWritable() { return Zend_Session::isWritable(); }