Chirag
Chirag

Reputation: 1929

Laravel User Logout on Browser Close

We've set up this

'expire_on_close' => true,

in config/session.php

However we are still not able to get our users to logout when they close their browser.

Anything else we can try?

Upvotes: 0

Views: 1595

Answers (2)

Mateo Ferreira
Mateo Ferreira

Reputation: 1

After making the change try:

php artisan config:cache
php artisan config:clear

Upvotes: 0

Benjamin Beganović
Benjamin Beganović

Reputation: 1168

config/session.php :: expire_on_close should work just fine, except in the case you used "Remember me" functionality.

Upvotes: 2

Related Questions