加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

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

发布时间:2020-12-14 05:24:15 所属栏目:Dedecms 来源:网络整理
导读:解决办法: 打开include/userlogin.class.php 找到 function ?exitUser()? ????{? ????????ClearMyAddon();? ????????@session_unregister( $this -keepUserIDTag);? ????????@session_unregister( $this -keepUserTypeTag);? ????????@session_unregister(

解决办法:

打开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. ????????$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. ????}?

(编辑:李大同)

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

    推荐文章
      热点阅读