Answer the question
In order to leave comments, you need to log in
Laravel starts session on every page refresh?
Good afternoon!
I use the driver for the session file
The rights to the directory are set correctly.
The session config and manipulations with it, which were found on the Internet, for example here:
https://stackoverflow.com/questions/42769388/larav...
were made, in the end I did not achieve any result.
I also checked the scripts for an indent or a space before the opening <?php tag,
which may affect the incorrect operation of the session start.
I also decided to try commenting out in App\Http\Kernel
\App\Http\Middleware\EncryptCookies::class
This option solved my problem. I'm also writing about it here, in case someone experiences the same problem.
Who met with similar problems? What could be wrong with \App\Http\Middleware\EncryptCookies::class?
Maybe someone dug deeper
Answer the question
In order to leave comments, you need to log in
I had a similar issue. Renaming the session cookie helped (if memory serves, I removed the hyphen or underscore from it). I spent several hours debugging, but did not find a specific reason.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question