In my Spring MVC application I have to display a Error page once the session is invalidated. For session invalidation , I am using the following code :
<session-config>
<session-timeout>1</session-timeout>
</session-config>
In this case after once minute the session expires.On any event in the page here ,the user should be populated with error page where I can redirect to login page again.
P.S: I not using Spring security and will not be.