dongzhitao4839 2016-09-27 09:22
浏览 39
已采纳

Zend Framework在随机时刻丢失会话?

Since a few days, I have a strange problem with Zend sessions. It seems that Zend_Auth::getInstance() seems to be empty at random moments, which causes users to be logged out. Sometimes this happens after a few seconds, sometimes a few minutes and sometimes not for a while. The application has been running without any problems for a year now on 2 different servers, both have this problem since a few days. The cookie information matches the information in the user session db table. Both are still available when a user gets logged out (lifetime 864000 seconds). Cookie expires only 'at end of session'. This also only happens on production servers, not locally.

Anyone know what the problem can be?

  • 写回答

1条回答 默认 最新

  • dongyou9818 2016-09-27 14:28
    关注

    I found the problem. There was an image loaded on the login page, which didn't exist. For some reason this image kept loading until the maximum execution time of 30 seconds was exceeded. The error resulted in the session being cleared, even though the user had logged in meanwhile. You can't make this stuff up!

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

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭