改进Response类的send方法 当为重定向的时候不清空当次有效数据

This commit is contained in:
thinkphp
2016-12-06 16:42:32 +08:00
parent 7ce4d935f6
commit 0788e048a7

View File

@@ -133,7 +133,9 @@ class Response
Hook::listen('response_end', $this);
// 清空当次请求有效的数据
Session::flush();
if (!($this instanceof RedirectResponse)) {
Session::flush();
}
}
/**