當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Session::expireSessionCookie方法代碼示例

本文整理匯總了PHP中Zend_Session::expireSessionCookie方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Session::expireSessionCookie方法的具體用法?PHP Zend_Session::expireSessionCookie怎麽用?PHP Zend_Session::expireSessionCookie使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Session的用法示例。


在下文中一共展示了Zend_Session::expireSessionCookie方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: logout

 /**
  * Logout the user destroying all session data
  */
 public function logout()
 {
     //$this->_auth->clearIdentity();
     $this->_auth->getStorage()->clear();
     //$this->_storage->clearAll();
     Zend_Session::expireSessionCookie();
 }
開發者ID:reveil,項目名稱:CodeTornado,代碼行數:10,代碼來源:User.php

示例2: clearSession

 /**
  * Clear the session information
  */
 public static function clearSession()
 {
     $authCookieName = Zend_Registry::get('config')->General->login_cookie_name;
     $cookie = new Core_Cookie($authCookieName);
     $cookie->delete();
     Zend_Session::expireSessionCookie();
     Zend_Session::regenerateId();
 }
開發者ID:ptarcher,項目名稱:exercise_mvc,代碼行數:11,代碼來源:Controller.php

示例3: _ZF_expireAll

 public function _ZF_expireAll($args)
 {
     Zend_Session::setOptions(array('remember_me_seconds' => 15, 'gc_probability' => 2));
     session_id($args[0]);
     if (isset($args[1]) && !empty($args[1])) {
         $s = new Zend_Session_Namespace($args[1]);
     } else {
         $s = new Zend_Session_Namespace();
     }
     $result = '';
     foreach ($s->getIterator() as $key => $val) {
         $result .= "{$key} === {$val};";
     }
     Zend_Session::expireSessionCookie();
     Zend_Session::writeClose();
     echo $result;
 }
開發者ID:jorgenils,項目名稱:zend-framework,代碼行數:17,代碼來源:SessionTestHelper.php

示例4: _initStartSession

 public function _initStartSession()
 {
     $this->bootstrap('frontcontroller');
     $this->bootstrap('multiplelog');
     try {
         $this->bootstrap('mongo');
         $this->bootstrap('session');
         Zend_Session::start(true);
         register_shutdown_function('session_write_close');
         $this->bootstrap('sessionregenerate');
         if (!Zend_Session::getId()) {
             Zend_Session::regenerateId();
         }
     } catch (\Exception $e) {
         \App::log()->crit($e);
         Zend_Session::expireSessionCookie();
         $this->_sendResponse(500, 10001, "Error starting session, try again later");
     }
 }
開發者ID:SandeepUmredkar,項目名稱:PortalSMIP,代碼行數:19,代碼來源:Bootstrap.php

示例5: expireSessionCookie

 /**
  * Zend_Session::expireSessionCookie encapsulation
  */
 public static function expireSessionCookie()
 {
     Zend_Session::expireSessionCookie();
 }
開發者ID:hernot,項目名稱:Tine-2.0-Open-Source-Groupware-and-CRM,代碼行數:7,代碼來源:Abstract.php

示例6: outAction

 public function outAction()
 {
     //@todo continuar con la destruccion de la session
     \Zend_Session::expireSessionCookie();
     if (\Zend_Session::isStarted()) {
         \Zend_Session::destroy(true, true);
     }
     $config = Config::getInstance();
     $responseParams = $config->getResponseConfigurations();
     $this->_forward($responseParams[Config::RESPONSE_ACTION_PARAM], $responseParams[Config::RESPONSE_CONTROLLER_PARAM], $responseParams[Config::RESPONSE_MODULE_PARAM]);
 }
開發者ID:laiello,項目名稱:zend-ifc-controller-action-configuration,代碼行數:11,代碼來源:LogController.php

示例7: logout

 public function logout()
 {
     $logger = Ml_Model_Logger::getInstance();
     $auth = Zend_Auth::getInstance();
     $logger->log(array("action" => "logout_request"));
     $oldUid = $auth->getIdentity();
     $auth->clearIdentity();
     $oldSid = Zend_Session::getId();
     Zend_Session::regenerateId();
     Zend_Session::destroy(true);
     Zend_Session::expireSessionCookie();
     $stmt = 'UPDATE ' . $this->_dbAdapter->quoteTableAs($this->_dbTable->getTableName()) . ' SET `status` = ?, `end` = CURRENT_TIMESTAMP, `end_remote_addr` = ? WHERE `session` = ?';
     if (isset($_SERVER['REMOTE_ADDR'])) {
         $remoteAddr = $_SERVER['REMOTE_ADDR'];
     } else {
         $remoteAddr = null;
     }
     $this->_dbAdapter->query($stmt, array(self::CLOSE_STATUS, $remoteAddr, $oldSid));
 }
開發者ID:henvic,項目名稱:MediaLab,代碼行數:19,代碼來源:Session.php


注:本文中的Zend_Session::expireSessionCookie方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。