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


PHP SessionHandler::close方法代碼示例

本文整理匯總了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']));
     }
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:7,代碼來源:SugarSessionHandler.php

示例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();
 }
開發者ID:badlamer,項目名稱:hhvm,代碼行數:10,代碼來源:session_set_save_handler_class_011.php

示例3: close

 public function close()
 {
     $id = session_id();
     echo "(#{$this->num}) closing {$id}\n";
     return parent::close();
 }
開發者ID:badlamer,項目名稱:hhvm,代碼行數:6,代碼來源:session_set_save_handler_class_007.php

示例4: close

 public function close()
 {
     $this->unlock();
     return parent::close();
 }
開發者ID:wikidi,項目名稱:libw-http,代碼行數:5,代碼來源:RedisSessionHandler.php

示例5: close

 public function close()
 {
     ++$this->i;
     echo 'Close ', session_id(), "\n";
     return parent::close();
 }
開發者ID:gleamingthecube,項目名稱:php,代碼行數:6,代碼來源:ext_session_tests_session_set_save_handler_class_001.php

示例6: close

 public function close()
 {
     return parent::close(false);
 }
開發者ID:badlamer,項目名稱:hhvm,代碼行數:4,代碼來源:session_set_save_handler_class_013.php

示例7: close

 /**
  * Close Session - free resources
  *
  * @return bool
  */
 public function close()
 {
     return $this->saveHandlerAdapter->close();
 }
開發者ID:,項目名稱:,代碼行數:9,代碼來源:

示例8: close

 /**
  * {@inheritdoc }
  */
 public function close()
 {
     $this->active = false;
     return (bool) $this->handler->close();
 }
開發者ID:vectrex,項目名稱:vxphp,代碼行數:8,代碼來源:NativeSessionWrapper.php

示例9: close

 public function close()
 {
     var_dump($this->foo);
     @var_dump($GLOBALS['bar']);
     return parent::close();
 }
開發者ID:badlamer,項目名稱:hhvm,代碼行數:6,代碼來源:session_set_save_handler_class_006.php


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