public function logout() { $session = new Zend_Session_Namespace("LeadsChat_Auth"); $db = $this->db; $db->update("available_agents", array("currently_served" => 0), "agent_id = {$session->agent_id}"); $db->update("available_agents", array("available" => "N"), "agent_id = {$session->agent_id}"); $session->__unset("agent_id"); $session->__unset("agent"); $session->__unset("chat_sessions"); }
public function unsetSession($name = null) { $ynblog_search = new Zend_Session_Namespace($name); // Search field if (isset($ynblog_search->session_array)) { $ynblog_search->__unset('session_array'); } }
public static function Remove($namespace) { $zendSession = new Zend_Session_Namespace($namespace); @$zendSession->__unset(); }
public function logoutAction() { $ns = new Zend_Session_Namespace('admin'); $ns->__unset('islogin'); $this->checkLogin(); }
function adminxmldisplyAction() { $smsSpace = new Zend_Session_Namespace('SMS'); if ($this->_request->getParam('flag') == 0) { // header("Content-Type: application/xml"); if ($this->_request->getParam('create') == null) { $this->view->text = stripslashes($this->_request["xml"]); } else { $this->view->text = stripslashes($smsSpace->xml); $smsSpace->xml = ""; $smsSpace->__unset('xml'); } } else { // if (strstr($smsSpace["respxml"],"</scp>")) header("Content-Type: application/xml"); $this->view->text = $smsSpace->respxml; $smsSpace->respxml = ""; $smsSpace->__unset('respxml'); } $this->_helper->layout->disableLayout(); }
/** * __unset() - unset a variable in this object's namespace. * * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace * @return true */ public function __unset($name) { if ($this->_persistObject) { $data = parent::_namespaceGet($this->_namespace); if (is_object($data)) { if (isset($data->{$name})) { return $data->{$name}; } } } return parent::__unset($name); }
/** * Limpa todas as notificações * * @return boolean */ public static function limpar() { $oSessaoNotificacao = new Zend_Session_Namespace('notificacoes'); $oSessaoNotificacao->__unset(self::TIPO_SUCESSO); $oSessaoNotificacao->__unset(self::TIPO_AVISO); $oSessaoNotificacao->__unset(self::TIPO_ERRO); return TRUE; }
public function logoutAction() { Zend_Auth::getInstance()->clearIdentity(); $authNamespace = new Zend_Session_Namespace('Zend_Auth'); $authNamespace->__unset('user'); $appspace = new Zend_Session_Namespace('application'); $appspace->__unset('popup'); $cartspace = new Zend_Session_Namespace('Cart'); $cartspace->__unset('list'); $consumerExtraInfo = new Zend_Session_Namespace('consumerExtraInfo'); $consumerExtraInfo->__unset('data'); $clientCampaignList = new Zend_Session_Namespace('ClientCampaignList'); $clientCampaignList->__unset('list'); //unset client new message count $clientCampaignList = new Zend_Session_Namespace('ClientMessage'); $clientCampaignList->__unset('count_' . $this->_currentUser->id); Zend_Debug::dump($clientCampaignList); $config = Zend_Registry::get('config'); $url = $config->joomla->home; $this->_flashMessenger->addMessage('Logout successfully!'); $this->_helper->redirector->gotoUrl($url); }