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条)

报告相同问题?