The Wicket application serializes and caches all pages to support state components, as well as to support the back button, among other possible reasons. I have an application that uses setResponsePage to go from screen to screen. In a fairly short period of time, the session becomes quite large because all previous pages are stored in the session. For the most part, I only need a session to contain the current page for obvious reasons, and possibly the last 2 or 3 pages, to make navigation easier with the browser button.
Can I make the page expire after I have sailed from it, and I know that I do not want to use the back button for this version of the page? More generally, what is the recommended way to handle a Wicket session?
source share