I have a problem with the use of sessions in laravel.
In Session.php
in lifetime
I put so that the session lasted 24 hours and worked well, what happens is that I added two div
to be updated every second and now at any time the session bounces me and not It lasts 24 hours.
'lifetime' => 1440, // 24 horas
'expire_on_close' => false,
JS code that I added.
setInterval(function() {
$('#div1').load('{{route('div1')}}');
$('#div2').load('{{route('div2')}}');
},1000);
This code is executed in all my pages, the 2 div
belong to a nav bar.
Any solution?