Browser Back Button and Form Data Persistence

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Browser Back Button and Form Data Persistence

    A form on MyForm.cfm posts to PostMyForm.cfm.
    While viewing the PostMyForm.cfm page, the user presses the browser's back
    button and doesn't see the form data he entered.

    Goal:
    Display the form data either through a page refresh of MyForm.cfm or some
    other method.

    I've read in the forum that <CFHEADER NAME="Expires" VALUE="#Now()#">
    <CFHTMLHEAD TEXT="<META HTTP-EQUIV='EXPIRES' CONTENT='NOW'>">

    will solve the problem by forcing a page refresh. It didn't work for me.
    Perhaps I'm putting the tags in the wrong place?
    Thanks so much!!!!



    storserver Guest

  2. Similar Questions and Discussions

    1. form data gone when back button is pressed
      Cold Fusion _required function for formfields gives the required message, with "use back to return to form to correct these problems". I am getting...
    2. Browser Back button problem
      Dear all I'm having a probelm concerning the security of my application. the problem is when a user is loggoed in and then he looged out i redirect...
    3. Browser back button and flash form expiration
      The message 'The form data has expired, Please reload this page in your browser.'appears when a user navigates forwards or backwards in a flash...
    4. Help with Frames and the Browser Back Button...
      Hi all! I think that it isn't the first time you read this question (I think it is a FAQ)....however.... .... I have a 3-frame page: left, top...
    5. Back button on the browser problem
      Hi In my application I have a wizard and I have to make sure that user can't come back to previous page of the wizard. The problem is that is user...
  3. #2

    Default Re: Browser Back Button and Form Data Persistence

    You don't want to refresh MyForm.cfm. Take that header stuff out . Are all browsers behaving in the same way, or only certain brands?
    jdeline Guest

  4. #3

    Default Re: Browser Back Button and Form Data Persistence

    I put this just after my <body> tag and it works for me.

    <cfoutput>
    <cfheader name="expires" value="#now()#">
    <cfheader name="pragma" value="no-cache">
    <cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
    </cfoutput>

    paross1 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139