i have a form where user enter some information. The problem is when they submit the form, due to session timeout, the page redirected to login page. After login they return to the same page but the form is empty and all information is lost which is very annoying for the user.
What is the best solution? I don't want to refresh the page. Should I send ajax request after every 5 minutes.
NOTE: The current Session Timeout is 40 minutes and it is stored in database.