3ejoueur
4 years ago
5385
18
Laravel

Session expire on close

Posted 4 years ago by 3ejoueur

We are currently trying to on of our site to logout user when they close their browser but we are having issues with the feature the user is always logged in even if the browser is closed by the user.

In config/session.php 'lifetime' => 60, 'expire_on_close' => true,

In .env file SESSION_DRIVER=file

Does anyone got the same kind of issues or am I doing something wrong.

Please sign in or create an account to participate in this conversation.