Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.3 session cookies are not creating in browser

I am facing token mismatch issue in new server while working fine in localhost. I have tried every possible way to clear cache and give SESSION_DOMAIN path in env but all seems useless.

Also session cookies are not being created in web browser while creating in storage/framework/session folder.

Please help me !

like image 529
DevOps Avatar asked Nov 08 '22 16:11

DevOps


1 Answers

Are you getting tokenMismatchException exception?

If yes, some of the possible reasons are:

  1. Check your files for PHP end tag "?>", if exists remove it. For more detail refer to this link.

  2. You may need to use web middleware. For more detail refer to this link (although it is about laravel 5.2 but, it may work for your situation too).

like image 62
skm Avatar answered Nov 15 '22 12:11

skm