Cookies, which Laravel marks the visitor's browser to maintain sessions, go with the expires parameter in absolute time, in the server time zone. My server and php's belt is UTC.

Session lifetime is 120 minutes. Visitors from Krasnoyarsk (+7) Kook come with an expires time 5 hours ago. Example response header:

Set-Cookie my_app_session = XXX..XXX% 3D; expires = Sun, 21-Sep-2014 09:57:16 GMT; path = /; httponly

Laravel error? Maybe someone has already encountered - how to fix? Stuck in the wilds of the classes Illuminate and Symfony.

    1 answer 1

    Understood. `app / config / session.php ':

     'expire_on_close' => true, 

    With this setting, cookies will be issued without an Expire date, which makes session cookies from them - for the duration of the session.