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

Asked by Anonymous on 26 Feb 2018 1970 Views

Anonymous on 27 Feb 2018


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,    

You must be logged in to answer a question. or