If you want to increase your session life time then you can easily do it from configuration file in laravel. laravel provide session. php there is a 'lifetime' key option for setting time in minutes. in session configuration file there is a also several option for set driver, timeout, expire_on_close and encrypt etc
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.
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
.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.
In this article i will let you know to delete multiple rows through checkbox using ajax in laravel and before delete we will give a confirmation message.
Want to make the most out of the latest Laravel technology? Here is your guide on how to hire the best Laravel developer, and at the right price.
Sometimes we need to rollback one specific migration. Here, in this article we will discuss about the migration rollback in laravel.
Skenix Infotech is a top Laravel Website Development Company with Expert Laravel Developers that provides robust Laravel Development Services at fair costs.
Spread the love1. Stop on first validation error By default, Laravel will check for all validation rules and return a list of errors. But if you want to stop this process after first validation failure, that’s how you can achieve…Read More→