Forráskód Böngészése

[更新]调整session_name规则

Anyon 8 éve
szülő
commit
64a60dd731
2 módosított fájl, 3 hozzáadás és 2 törlés
  1. 1 0
      .gitignore
  2. 2 2
      index.php

+ 1 - 0
.gitignore

@@ -4,3 +4,4 @@
 /runtime/
 /composer.lock
 /public/upload
+/nbproject

+ 2 - 2
index.php

@@ -13,13 +13,13 @@
 // +----------------------------------------------------------------------
 
 /* SESSION会话名称 */
-session_name(md5(__FILE__));
+session_name('sess' . substr(md5(__FILE__)), 0, 8);
 
 /* 定义应用目录 */
 define('APP_PATH', __DIR__ . '/application/');
 
 /* 定义Runtime运行目录 */
-define('RUNTIME_PATH', __DIR__ . '/static/~runtime/');
+define('RUNTIME_PATH', __DIR__ . '/static/runtime/');
 
 /* 加载框架引导文件 */
 require __DIR__ . '/thinkphp/start.php';