Session In Laravel Doesn\'t Get Expired Even After The Browser Is Closed. Is It A Bug?

Asked 8 years ago Modified 1 day ago 5057 Views
0
Anonymous Post Date: Feb 22, 2018

Answers (1)

1

Go to your session.php file inside the config directory.

In the session lifetime section, you can see the session's expire_on_close array with value set as false as shown below.

 
'expire_on_close' => false, 

Set it as true as shown below and you're done with it.

 
'expire_on_close' => true,    
Webtrickshome Answered: Feb 22, 2018
Comments

Sign in to help the community by answering this question.

Log In to Answer