Hi, You can use Session#clear() [1] to remove the history at the server side. It is not possible to clear the history in the user's browser though. See [2] for some discussions. If you clear at the server side anyway then the user will either see PageExpiredException or a new/fresh instance of C, B and A will be created.
1. https://github.com/apache/wicket/blob/5886f69e6a1f79ab6a1ff27f71b72da238b850b1/wicket-core/src/main/java/org/apache/wicket/Session.java#L286 2. http://stackoverflow.com/questions/20044554/how-to-clear-browsing-history-using-javascript Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Apr 12, 2015 at 10:47 PM, Chris <[email protected]> wrote: > Hi all, > > How can browser back cache be disabled? > > When having a page flow A > B > C > D, I would like that if page D is > loaded, the session is invalidated and browser back cache disabled, so that > browser back does not work anymore. > Between all other pages, browser back should work. > > Thanks a lot, > Chris > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
