Authored by hf

do fixes bug to logout clear old session

@@ -80,13 +80,14 @@ class LoginController extends AbstractAction @@ -80,13 +80,14 @@ 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', '');
  86 +
83 // 清除客户端 87 // 清除客户端
84 $this->setCookie('_UID', ''); 88 $this->setCookie('_UID', '');
85 $this->setCookie('_TOKEN', ''); 89 $this->setCookie('_TOKEN', '');
86 $this->setCookie('_SPK', ''); 90 $this->setCookie('_SPK', '');
87 - // 清除服务端会话  
88 - $this->setSession('_TOKEN', '');  
89 - $this->setSession('_LOGIN_UID', '');  
90 91
91 $refer = $this->server('HTTP_REFERER', SITE_MAIN); 92 $refer = $this->server('HTTP_REFERER', SITE_MAIN);
92 $token = $this->get('token'); 93 $token = $this->get('token');