do fixes bug to logout clear old session
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -80,13 +80,13 @@ class LoginController extends AbstractAction | @@ -80,13 +80,13 @@ class LoginController extends AbstractAction | ||
80 | */ | 80 | */ |
81 | public function outAction() | 81 | public function outAction() |
82 | { | 82 | { |
83 | + // 清除服务端会话 | ||
84 | + $this->setSession('_TOKEN', ''); | ||
85 | + $this->setSession('_LOGIN_UID', ''); | ||
83 | // 清除客户端 | 86 | // 清除客户端 |
84 | $this->setCookie('_UID', ''); | 87 | $this->setCookie('_UID', ''); |
85 | $this->setCookie('_TOKEN', ''); | 88 | $this->setCookie('_TOKEN', ''); |
86 | $this->setCookie('_SPK', ''); | 89 | $this->setCookie('_SPK', ''); |
87 | - // 清除服务端会话 | ||
88 | - $this->setSession('_TOKEN', ''); | ||
89 | - $this->setSession('_LOGIN_UID', ''); | ||
90 | 90 | ||
91 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); | 91 | $refer = $this->server('HTTP_REFERER', SITE_MAIN); |
92 | $token = $this->get('token'); | 92 | $token = $this->get('token'); |
-
Please register or login to post a comment