<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>

                # (4)config配置 #### 1. 項目中的config.php: ``` <?php /**** @author:1132w11 2016.10.25 14:02; ****/ return [ 'url_route_on' => true, 'URL_MODEL'=>2, "web_root" => "/tp5/public/static/", //"web_root" => "/static/", "web" => "/tp5/public/index.php/", 'session' => [ 'auto_start' => true, 'name' => 'login@', 'expire' => 1800, /*時間長度*/ ], 'captcha' => [ // 驗證碼字符集合 'codeSet' => '0123456789', // 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY', // 驗證碼字體大小(px) // 'fontSize' => 25, // 是否畫混淆曲線 'useCurve' => true, // 驗證碼位數 'length' => 3, // 驗證成功后是否重置 'reset' => true ], ]; ``` 如果開啟了url\_route\_on參數的話,會首先進行URL的路由檢測。 #### 2. session配置部分 expire最主要是session失效時間,貌似再官方手冊沒有直接寫到。 #### 3 驗證碼captcha配置部分 主要是codeSet這個因素,可以給驗證碼設置任何你想要的驗證類型,中文英文數字,例如: ``` 'codeSet' => '0123456789', //驗證碼為純數字 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY', //數字大小字母 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY你好睡覺啊', //數字大小字母加漢子類型驗證碼 ``` #### 4. 頁面到期自動退出 這里可以給后臺頁面的index.html文件的meta加一個自動刷新頁面的時間,并且時間跟session自動銷毀的時間相等。session到期后,頁面刷新一次就自動退回到登錄頁面!代碼: ``` <meta http-equiv="refresh" content="1800"> ```
                  <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>

                              哎呀哎呀视频在线观看