dongmu5920 2017-04-17 21:39
浏览 37
已采纳

Cakephp返回错误302

I have a very weird behavior is happens in cake php.

Just in production, some action is returning error 302 when the user is logged.

I cannot reproduce this in development environment, but randomly, the session dies and the action return 302.

This week happens a problem in the server disk, this server is from a thirdy partner, and I don't know if there is a relationship between this. But I know that the server is unstable last days.

I tried to log some stack, but nothing is logged in the cakephp.

The session method is using cookies, but this problem happens without the cookies.

My hypothesis are:

  1. the disk has some problem and lose the session files.
  2. could exist a bug in cakephp 2.4.5and it is causing the session lost
  3. there is goblin inside the server doing mess.

Could you help me? I had this problem for 3 weeks.

Thanks

  • 写回答

2条回答 默认 最新

  • doumou1864 2017-04-17 21:44
    关注

    Yes, maybe could be correlated with the way on which PHP works with sessions. PHP saves all sessions on a directory, that you can get with the php_session_path function: http://php.net/manual/en/function.session-save-path.php. If this directory it's located on the disk that you said, or is related on another way, you will have problems.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度