Eric Pascarello wrote:Use post to go from page to page and use the correct expires headers.
Eric
The way my code currently functions (correctly, minus the back button issue) is such:
A session variable is set (session.setAttribute("current", question_number)) that is read by the server to determine which question should be displayed.
The form is submitted, a second page processes it and determines the next question that should be displayed, and changes the "current" session attribute accordingly.
The second page redirects back to the first page, which displays a new question based on the new, modified "current" attribute.
I've tried setting the response fields to disable caching using:
but the session variable from the page the user goes back from is still set (ie, the "current" variable is +1 from where it should be after the back button is pressed). What I am guessing needs to happen is that session variable needs to expire after the original page is left, but I have no idea how to go about doing that.
Do you have any thoughts or a link to a tutorial so that I can do this correctly without resorting to JavaScript hacks?