Join WhatsApp ChannelJoin Now

Laravel 8 Increase Session Timeout

Hi Dev,

Today, i we will show you laravel 8 increase session timeout. This article will give you simple example of laravel 8 increase session timeout. you will laravel 8 increase session timeout. In this article, we will implement a laravel 8 increase session timeout.

So let’s follow few step to create example of laravel 8 increase session timeout.

Example 1 : .env File

.env

SESSION_LIFETIME=525600

Example 2: Using Config File

config/session.php

<?php
  
use Illuminate\Support\Str;
  
return [
  
    .....
  
    'lifetime' => 1 * (60 * 24 * 365),
  
    .....
  
]

I hope it will assist you…

Recommended Posts