Laravel Session always changes every refresh / request in Laravel 5.4

后端 未结 6 764
春和景丽
春和景丽 2020-12-01 12:38

So the title basically says it all, I am using Laravel 5.4, PHP 7.1 and on my local machine sessions are working just fine. Essentially when trying to login or reloading the

6条回答
  •  感动是毒
    2020-12-01 13:16

    I was also facing the similar problem in Laravel 5.6. My application was working and and never had issues regarding authentication. Suddenly I got a "419 | page is expired" error and the CSRF token was being generated with every single refresh.

    Finally I figured out that the browser had blocked the cookies set by the application. I still had not found a permanent fix but allowing or deleting those blocked cookies temporarily solved the issue.

    I have nothing changed in my config/sessions.php* configuration file and the application works fine in local server.

提交回复
热议问题