Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts

    clearing the history

    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
    Last edited by Exodious; 12-17-2003 at 04:45 PM.

  • #2
    New Coder
    Join Date
    Nov 2003
    Location
    S.F.
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    use sessions and cache headers, so the browser doesn't cache any information
    there are no stupid questions, but there are stupid answers

  • #3
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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/showthre...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)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •