From 0788e048a7e92916e7ca7d1531cbd13d9dfa71c6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 6 Dec 2016 16:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BResponse=E7=B1=BB=E7=9A=84sen?= =?UTF-8?q?d=E6=96=B9=E6=B3=95=20=E5=BD=93=E4=B8=BA=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E5=BD=93=E6=AC=A1=E6=9C=89=E6=95=88=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); + } } /**