Answer the question
In order to leave comments, you need to log in
Why is time lagging in Laravel cookies?
I'm working with Laravel sessions and realized that my time is 4 hours behind in cookies
. 12:19 is indicated
And in fact the time is 14:19
Session lifetime is 2 hours.
those. Cookie, in theory, it seems that right now it's 10 hours The
time zone in the laravel settings
On the computer is also correct
in php.ini correctly.
Everything seems to be checked, but there is still a backlog in the cookies.
What could be the reason?
'timezone' => 'Europe/Samara'
Answer the question
In order to leave comments, you need to log in
It is possible that Laravel itself saves in Samara time, and the database in UTC. Check out this case
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question