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
Disable nginx cache if you use it. For me it solved the same problem.
nginx