当前位置: 首页>>代码示例>>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;未经允许,请勿转载。