Add in a check to your AJAX code to check for the correct error code (usually 403 in this instance) and then redirect.
You could also just ping the server every minute to keep the session active.
Really poor example but yeah:
setInterval(function(){
$.get('/my/ping/route');
}, 1000 * 60);
@tomschlick thank you, I have the code to set the answer not to check it, I'll do it.
@bweston92 thank you, I'll complete the whole ajax cycle first...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community