Laravel sessions regenerating on every load

后端 未结 8 2243
盖世英雄少女心
盖世英雄少女心 2021-02-18 19:05

I\'m having a lot of problems and I really can\'t seem to find a solution.

Yesterday, I finished up doing some work on a vagrant box in Laravel. When I shut down the com

8条回答
  •  逝去的感伤
    2021-02-18 19:47

    I had this exact problem and with almost identical environments as well. As you experienced as well what ended up working for me was starting a totally fresh Laravel 4.1 project and then copying everything over. However I did also find that by changing one config variable I was able to fix the problem:

    In /app/config/session.php change the lifetime config item to something higher than 0. This fixed the issue for me.

提交回复
热议问题