...

View Full Version : clearing the history



Exodious
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

Thx

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

raf
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
http://www.codingforums.com/showthread.php?s=&threadid=28073&highlight=back

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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum