欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

PHP5.4版本dedecms后台退出空白的解决方法

时间: 2018-12-09 20:40 阅读: 作者:素材无忧网

解决办法:

打开include/userlogin.class.php

找到

  1. function exitUser() 
  2.     { 
  3.         ClearMyAddon(); 
  4.         @session_unregister($this->keepUserIDTag); 
  5.         @session_unregister($this->keepUserTypeTag); 
  6.         @session_unregister($this->keepUserChannelTag); 
  7.         @session_unregister($this->keepUserNameTag); 
  8.         @session_unregister($this->keepUserPurviewTag); 
  9.         DropCookie('dedeAdmindir'); 
  10.         DropCookie('DedeUserID'); 
  11.         DropCookie('DedeLoginTime'); 
  12.         $_SESSION = array(); 
  13.     } 

替换为:

  1. function exitUser() 
  2.     { 
  3.         ClearMyAddon(); 
  4.         #@session_unregister($this->keepUserIDTag);         
  5.         $_SESSION[$this->keepUserIDTag] = $this->userID; 
  6.         #@session_unregister($this->keepUserTypeTag);         
  7.         $_SESSION[$this->keepUserTypeTag] = $this->userType; 
  8.         #@session_unregister($this->keepUserChannelTag);         
  9.         $_SESSION[$this->keepUserChannelTag] = $this->userChannel; 
  10.         #@session_unregister($this->keepUserNameTag);         
  11.         $_SESSION[$this->keepUserNameTag] = $this->userName; 
  12.         #@session_unregister($this->keepUserPurviewTag);         
  13.         $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; 
  14.         DropCookie('dedeAdmindir'); 
  15.         DropCookie('DedeUserID'); 
  16.         DropCookie('DedeLoginTime'); 
  17.         $_SESSION = array(); 
  18.     } 

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: PHP5.4版本dedecms后台退出空白的解决方法

标签:  
模板推荐