vendredi 26 juin 2015

Ruby on rails timeout message not showing when javascript is executed

I have a ruby on rails application that has the timeout time set to 30 minutes.

If 30 minutes have passed and you try to do something it returns to the login screen. This all works fine.

The problem I'm facing is with a javascript-table-refresh-button. If that button is clicked (and 30 minutes or more has passed) then we are redirected back to login. Problem is, in this case the error message doesn't show.

Any ideas how I can force the JS to show that error?

Aucun commentaire:

Enregistrer un commentaire