dseve40868 2011-04-06 22:15
浏览 41
已采纳

CodeIgniter会话消失Bug?

I am using CI 1.7.3 and here are my settings:

$config['sess_cookie_name']     = 'ci_session';
$config['sess_expiration']      = 0;
$config['sess_encrypt_cookie']  = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']      = 'sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']      = 300;

I cannot come up with steps that cause the session to expire, it just seems random and is very frustrating for users.

  • 写回答

1条回答 默认 最新

  • dongyoufo5672 2011-04-28 22:25
    关注

    I have the same issue. There's a design flaw in the CodeIgniter sessions library that causes the accidental destruction of sessions when two or more requests are submitted in rapid succession (such as when performing several AJAX requests). I've submitted a bug report that explains in more detail here: https://github.com/EllisLab/CodeIgniter/issues/154

    For now, you can implement a workaround by setting sess_use_database = FALSE. Hopefully someone resolves this issue soon.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元