A
A
Apostol632020-02-17 13:24:36
HTTP Cookies
Apostol63, 2020-02-17 13:24:36

Why is time lagging in Laravel cookies?

I'm working with Laravel sessions and realized that my time is 4 hours behind in cookies
5e4a6925abcd3763667026.png

. 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

2 answer(s)
S
Sergey Popov, 2020-02-17
@be_a_dancer

It is possible that Laravel itself saves in Samara time, and the database in UTC. Check out this case

J
JhaoDa, 2020-02-17
@JhaoDa

Because the lifetime of cookies is always in UTC (GMT).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question