My System every after sometime of being idle returns the error below when i refresh it.
Image here: Laravel Error Displayed after a given time of inactivity of a system
I changed session lifetime from 120 to 120000000000 in the session.php file as shown below but seems not to work
<?php
return [
'driver' => env('SESSION_DRIVER', 'file'),
'lifetime' => env('SESSION_LIFETIME', 120000000000),
'expire_on_close' => false,
'encrypt' => false,
'files' => storage_path('framework/sessions'),
'connection' => null,
'table' => 'sessions',
'store' => null,
'lottery' => [2, 100],
'cookie' => env(
'SESSION_COOKIE',
str_slug(env('APP_NAME', 'laravel'), '_').'_session'
),
'path' => '/',
'domain' => env('SESSION_DOMAIN', null),
'secure' => env('SESSION_SECURE_COOKIE', false),
'http_only' => true,
'same_site' => null,
];
How can i resolve this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire