View Full Version : clearing the history

12-17-2003, 05:42 PM
Any chance?

Users have finished entering lines in a service style environment, then click submit, want the back button to be disabled so they cannot go back to the previous page and resubmit the lines.

Setting the timeout so the page doesn't exist is not user friendly (or stupid proof)

Also, I know opening a new window would restart history from that point forward but in this jsp/java/C environment tis not an option either.

Any ideas welcome


12-17-2003, 06:02 PM
use sessions and cache headers, so the browser doesn't cache any information

12-17-2003, 08:05 PM
You can never fully control the browsercaching because some browsers simply ignore the cachinginstructions.

So up until resubmitting, you can't prevent it (in a bulletproof way). But you can avoid that the resubmitted page fires of the code that manipulates your data.

I wrote some info + put up a link to one of my experiments here

The basic idea is quite simple : submitted forms are only processed it they were 'cleared' first. You can store this clearance-flag inside a sessionvariable, or inside a table (which i prefere)