doubei8541 2016-03-13 21:03
浏览 132

Codeigniter会话ID问题

i have back/front end login sistems.

But using codeigniter session seems to use the same session id for both. So if i destroy the session for the backend when signing out, the session is destroyed on the front end as well. If i only unset() the userdata, the session id remains and the next admin logged in, useses the same session wich is not good. Apparently CI autogenerate Sessions IDs. Can i do that manualy?

Any suggestions? Please help, i've bean checking the net for hours and i can't find a sollution.

  • 写回答

2条回答 默认 最新

  • dongxi4335 2016-03-13 21:10
    关注

    Are you using different Codeigniter installs for frontend and backend? If so, you can set different sess_cookie_name values in your app config.php file.

    Take a look here: https://www.codeigniter.com/user_guide/libraries/sessions.html#session-preferences

    评论

报告相同问题?

悬赏问题

  • ¥20 求计算赫斯特(Hurst)指数
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大