Laravel expires in browser not working in Chrome

I am using the Laravel Framework version 4.1.21, and the "expire_on_close" option does not end the session in Chrome when the browser is closed. The parameters in the config / session.php file are as follows:

'driver' => 'file', 'lifetime' => 120, 'expire_on_close' => true, 

Also in the developer’s toolbar, under Resources> Cookies, the value of Expires is set to "Session" for the laravel_session cookie.

This works great in Firefox. Any ideas what I am missing? Thanks!

+6
source share
1 answer

This is thanks to the Chrome feature. When you close Google Chrome, it actually works in the background (as indicated in the comments).

Here is the detailed information: https://code.google.com/p/chromium/issues/detail?id=128513

+3
source

All Articles