加入收藏 | 设为首页 | 会员中心 | 我要投稿 莱芜站长网 (https://www.0634zz.com/)- 云连接、建站、智能边缘云、设备管理、大数据!
当前位置: 首页 > 综合聚焦 > CMS系统 > 正文

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

发布时间:2020-07-22 17:47:28 所属栏目:CMS系统 来源:互联网
导读:解决办法: 打开include/userlogin.class.php 找到 function exitUser() { ClearMyAddon(); @session_unregister( $this -keepUserIDTag); @session_unregister( $this -keepUserTypeTag); @session_unregister( $this -keepUserChannelTag); @session_unreg

解决办法:

打开include/userlogin.class.php

找到

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

(编辑:莱芜站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读