Well, this won't help a lot, but I'm having the exact same problem as you. I've spent many hours figuring what's causing this without any luck. So, if you find a solution let me know!
Laravel 5.2 recreates a session every time in our production server
Hi! As I said in the title Laravel makes a new session every time I make a get/post on the server. The sessions are stored in files and they are created fine so it is not a permission problem. The strange thing is that it works on two different development environments and we tried it on a digital ocean server and it works there too. We can't move to another server because we have everything connected with this one and we try to keep it here at least of a while mainly because it is more cheap and is in Denmark (All our current requests are made from Denmark). I spent over a week trying to figure out what is wrong and all I was able to get is that Laravel sends the TokenMismatchException in VerifyCsrfToken.php line 67 because the tokens are different. I can see in the storage folder that two different sessions files are created. Do you have any idea what can be the issue? I am thinking about a server configuration issue but I don't know what exactly so I can't write a message to the support team. I don't think it is a code error since it works on 3 different machines. Any kind of help will be great. Best regards, Alex!
Please or to participate in this conversation.