user6446579
user6446579

Reputation:

Laravel 5.2 frequently logging out

I am using Laravel 5.2. with session driver set to FILE in .env file.

I am logging out of the system about every 2 hours, especially when I return from PayPal payment page to my website.

Can anyone help me with this?

Upvotes: 1

Views: 136

Answers (2)

user6446816
user6446816

Reputation:

set your config settings of timeout from 120 to 2400. this is in minutes.

in config/session.php 'lifetime' => 120 // This is in minutes

Upvotes: 7

Ganesh Ghalame
Ganesh Ghalame

Reputation: 7023

You can find session configuration in config/session.php file.

Change lifetime parameter value. You may specify the number of minutes that you wish the session to be allowed to remain idle before it expires.

'lifetime' => 120  // This is in minutes

Upvotes: 3

Related Questions