Laravel sessions regenerating on every load

后端 未结 8 2278
盖世英雄少女心
盖世英雄少女心 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.

    0 讨论(0)
  • 2021-02-18 19:47

    I've experienced issues related to this. The session file wasn't created every time but sometimes I just can't get the session variable displayed. After hours of experiments I found that the problem was related to Debugbar.

    If you're using Debugbar and having session issues, disable it and try again to confirm. There's an issue reported here.

    0 讨论(0)
提交回复
热议问题