DEV Community

Robert Look
Robert Look

Posted on

[Lifetime Session] How to Increase Session Timeout Limit in Laravel 8?

This instructional exercise broadly expounds on How to Increase Session Timeout in Laravel 8. you will figure out how to set the meeting lifetime in laravel. We are the way to set meeting break in laravel 8. we will assist you with giving instances of laravel increment meeting break in this instructional exercise.

You can without much of a stretch increment meeting lifetime in laravel 8 form.

laravel meeting lifetime perpetually then you can without much of a stretch do it from the design record in laravel 8. laravel gives a session.php there is a 'lifetime' key alternative for setting time in minutes. In the meeting design record, there are additionally a few alternatives for a set driver, break. At that point update meeting an incentive in laravel.

Read More: [Lifetime Session] How to Increase Session Timeout Limit in Laravel 8?

below 2 Example:

config/session.php

<?php

use Illuminate\Support\Str;

return [

    .....

    'lifetime' => env('SESSION_LIFETIME', 120),

    .....


Enter fullscreen mode Exit fullscreen mode

and
config/session.php

<?php

use Illuminate\Support\Str;

return [

    .....

    'lifetime' => 1 * (60 * 24 * 365),

    .....


Enter fullscreen mode Exit fullscreen mode

Top comments (0)