diff --git a/library/think/Response.php b/library/think/Response.php index 2b84ed17..e0f5d7e2 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -133,7 +133,9 @@ class Response Hook::listen('response_end', $this); // 清空当次请求有效的数据 - Session::flush(); + if (!($this instanceof RedirectResponse)) { + Session::flush(); + } } /**