From 3935b867755ef5b2d9382eb81a95a33d41697e8d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 2 Mar 2023 16:01:53 +0800 Subject: [PATCH] * fix bug #32306. --- module/user/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/user/control.php b/module/user/control.php index f36e1f5652..4870995750 100755 --- a/module/user/control.php +++ b/module/user/control.php @@ -978,6 +978,7 @@ class user extends control } else { + setcookie('tab', false, time(), $this->config->webRoot); $loginExpired = !(preg_match("/(m=|\/)(index)(&f=|-)(index)(&|-|\.)?/", strtolower($this->referer), $output) or $this->referer == $this->config->webRoot or empty($this->referer) or preg_match("/\/www\/$/", strtolower($this->referer), $output)); $this->loadModel('misc'); @@ -1050,7 +1051,7 @@ class user extends control if(isset($this->app->user->id)) $this->loadModel('action')->create('user', $this->app->user->id, 'logout'); setcookie('za', false, time() - 3600, $this->config->webRoot); setcookie('zp', false, time() - 3600, $this->config->webRoot); - setcookie('tab', false, time() - 3600, $this->config->webRoot); ; + setcookie('tab', false, time() - 3600, $this->config->webRoot); session_destroy(); if($this->app->getViewType() == 'json') return print(json_encode(array('status' => 'success')));