[更新]调整session_name规则

This commit is contained in:
Anyon 2017-04-25 11:37:36 +08:00
parent 7324eb4f08
commit 64a60dd731
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

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

View File

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