<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] ### 組件說明 > Lying的Session是內置組件,用于簡單的操作session。 > session支持多維數組操作,如`$session->set('user.name', 'lying');`。 ### 配置選項 | 配置名 | 參數類型 | 可選 | 默認值 | 說明 | | --- | --- | --- | --- | --- | | class | string | 是 | lying\service\Session | 不可更改 | ### 示例配置 Session組件暫時不需要配置,可直接使用 ### 調用方式 ~~~php \Lying::$maker->get('session'); \Lying::$maker->session(); \Lying::$maker->session; ~~~ ### 方法列表 ~~~php /** * 判斷SESSION是否啟用 * @return bool 返回SESSION是否已經啟用 */ public function isActive(); ~~~ * * * * * ~~~php /** * 啟用SESSION * @return bool 返回SESSION是否成功啟用 */ public function open(); ~~~ * * * * * ~~~php /** * 寫入SESSION并關閉SESSION * 此操作并不會清空$_SESSION數組,也不會重置會話cookie,如果需要再次使用會話變量,必須重新調用open函數 * @return bool 返回會話是否成功關閉 */ public function close(); ~~~ * * * * * ~~~php /** * 銷毀會話,不會重置會話cookie,但會清空$_SESSION數組并且關閉會話,如果需要再次使用會話變量,必須重新調用open函數 * @return bool 返回會話是否成功關閉,如果會話未啟用則返回false */ public function destroy(); ~~~ * * * * * ~~~php /** * 獲取SESSION的值 * @param string $key 鍵名 * @param mixed $default 默認值,默認為null * @return mixed 返回SESSION的值 */ public function get($key, $default = null); ~~~ * * * * * ~~~ /** * 設置SESSION的值 * @param string $key 鍵名 * @param mixed $value 值 */ public function set($key, $value); ~~~ * * * * * ~~~php /** * SESSION是否存在 * @param string $key 鍵名 * @return bool 返回SESSION是否存在 */ public function exists($key); ~~~ * * * * * ~~~php /** * 移除SESSION * @param string $key 要移除的鍵名,如果key為null,則清空整個$_SESSION數組 * @return bool 返回SESSION是否成功移除 */ public function remove($key = null); ~~~ * * * * * ~~~php /** * 獲取/設置新的會話ID * @param string $newId 新的會話ID * @return bool|string 返回當前會話ID,如果設置會話ID失敗,則返回false */ public function id($newId = null); ~~~ * * * * * ~~~php /** * 獲取/設置新的會話名稱 * @param string $newName 新的會話名稱 * @return bool|string 返回當前會話名稱,如果設置會話名稱失敗,則返回false */ public function name($newName = null); ~~~ * * * * * ~~~php /** * 獲取/設置當前會話的保存路徑 * @param string $newPath 指定會話數據保存的路徑 * @return bool|string 返回前會話的保存路徑,如果設置會話路徑失敗,則返回false */ public function savePath($newPath = null); ~~~ * * * * * ~~~php /** * 獲取/設置會話cookie參數 * @param array $params 會話cookie參數 * @return array|bool 成功返回會話cookie參數,失敗返回false */ public function cookieParams(array $params = null); ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看