Good content takes time and effort to come up with.
Please consider supporting us by just disabling your AD BLOCKER and reloading this page again.
In this article, I will show you how to increase the session timeout in Laravel.
NOTE: Laravel session timeouts are set in minutes
We will be covering the following topics
Increase the session timeout for 1 year.
.env
SettingsSESSION_LIFETIME=525600
365 days * 24 hours * 60 minutes = 525600 minutes
You can even directly edit lifetime
in the session config settings as shown below.
As you see by default it will read from the .env
file. If you by chance delete the SESSION_LIFETIME
in .env
file then it will add 43200 minutes.
<?php
use Illuminate\Support\Str;
return [
.......
'lifetime' => env('SESSION_LIFETIME', 43200),
.......
];
Hope you got to know how to increase the session timeout in Laravel. Don't forget to share with your friends.
Factories To Speed Up Test-Driven Development In Laravel
Sass or SCSS @function vs @mixin
Unable to prepare route [{fallbackPlaceholder}] for serialization. Uses Closure In Laravel
Test Your Local Developing Laravel Web Application From Phone Browser Without Any Software
Add Google ADS In AMP (Accelerated Mobile Pages) Website
Multiple GIT Key Pairs Or Account In The Same Computer
Ensure text remains visible during Webfont load
Install NGINX In Linux / Ubuntu And Managing
Sass or SCSS @mixin vs @extends vs Placeholder (%)
PHP file_put_contents failed to open stream: Permission denied
Website Speed and Performance Optimizations
Create / Save / Download PDF From Blade Template In PHP Laravel