I am exploring JSP to implement dynamic web pages. One issue to solve is navigation between pages. Users have the possibility to go back and forward in their browsers.
This has to be handled. If someone logs out (for example), we don't want someone else to retrieve the session or data by clicking 'go back'. Another example is that we don't want to resubmit forms twice.
I am looking for tips and advices to solve page navigation issues. I would like to create a list of issues one has to take care of + possible solutions:
Issues:
- Making sure sessions cannot be retrieved/hijacked with go back/forward clicks
- Making sure forms and not submitted twice
- Making sure users cannot fiddle cookies or URL data or hidden fields to break control flow and security
Solutions:
- Implement a stack of visited pages
- When a page is invoked, register the moment it is displayed to differentiate new requests from 'go back'
- Control current session
P.S.: I have seen this question, but there is no real answer to it.