错误编码

This commit is contained in:
thinkphp
2015-12-12 08:16:59 +08:00
parent 28508f690a
commit af19146ec0
8 changed files with 19 additions and 17 deletions

View File

@@ -71,7 +71,9 @@ class Session
// 读取session驱动
$class = '\\think\\session\\driver\\' . strtolower($config['type']);
// 检查驱动类
session_set_save_handler(new $class());
if (!session_set_save_handler(new $class())) {
throw new Exception('error session handler', 11700);
}
}
// 启动session
if (!empty($config['auto_start'])) {