本文整理汇总了PHP中SessionHandler::close方法的典型用法代码示例。如果您正苦于以下问题:PHP SessionHandler::close方法的具体用法?PHP SessionHandler::close怎么用?PHP SessionHandler::close使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SessionHandler
的用法示例。
在下文中一共展示了SessionHandler::close方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: close
public function close()
{
parent::close();
if ($this->isCurrentSessionExceeded()) {
$this->log->error(sprintf("[SessionLock] Session lock was held for %s seconds which is longer than the maximum of %s seconds. Request details: \n SERVER_NAME | %s \n SERVER_ADDR | %s \n SCRIPT_FILENAME | %s \n REQUEST_METHOD | %s \n SCRIPT_NAME | %s \n REQUEST_URI | %s \n QUERY_STRING | %s ", $this->session_time, $this->max_session_time, $_SERVER['SERVER_NAME'], $_SERVER['SERVER_ADDR'], $_SERVER['SCRIPT_FILENAME'], $_SERVER['REQUEST_METHOD'], $_SERVER['SCRIPT_NAME'], $_SERVER['REQUEST_URI'], $_SERVER['QUERY_STRING']));
}
}
示例2: close
public function close()
{
$id = session_id();
if ($this->destroyed) {
echo "(#{$this->num}) destroyed, cannot write\n";
} else {
echo "(#{$this->num}) closing {$id}\n";
}
return parent::close();
}
示例3: close
public function close()
{
$id = session_id();
echo "(#{$this->num}) closing {$id}\n";
return parent::close();
}
示例4: close
public function close()
{
$this->unlock();
return parent::close();
}
示例5: close
public function close()
{
++$this->i;
echo 'Close ', session_id(), "\n";
return parent::close();
}
示例6: close
public function close()
{
return parent::close(false);
}
示例7: close
/**
* Close Session - free resources
*
* @return bool
*/
public function close()
{
return $this->saveHandlerAdapter->close();
}
示例8: close
/**
* {@inheritdoc }
*/
public function close()
{
$this->active = false;
return (bool) $this->handler->close();
}
示例9: close
public function close()
{
var_dump($this->foo);
@var_dump($GLOBALS['bar']);
return parent::close();
}