I am using spring security, java in application. When the session gets expired, I need to show an alert that the session is over. The box should have an ok button which, when clicked, I want to redirect to login page.where should i put max time out and display alert message after time out.
I am using spring security, java in application. When the session gets expired, I
Share
Assuming that the session timeout timer is reset once a new page is loaded, you can simply use a JavaScript timeout:
As soon as you navigate to another page, all current JavaScript is discarded, so the timeout will be reset.