Support the ongoing development of Laravel.io →
Security Requests Input
Last updated 2 years ago.
0

Add in a check to your AJAX code to check for the correct error code (usually 403 in this instance) and then redirect.

Last updated 2 years ago.
0

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);
Last updated 2 years ago.
0

@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...

Last updated 2 years ago.
0

I ended up with

.ajaxError()

Within I check for the 403 as suggested by @tomschlick

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Ricardo ricardo Joined 19 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.