本文整理汇总了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();
}
示例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();
}
示例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;
}
示例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");
}
}
示例5: expireSessionCookie
/**
* Zend_Session::expireSessionCookie encapsulation
*/
public static function expireSessionCookie()
{
Zend_Session::expireSessionCookie();
}
示例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]);
}
示例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));
}