Form data has expired

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Form data has expired

    I have a Grid using onChange as below:
    onchange="getUrl('SpecificAccount.cfm?count_id=' +
    getTodaysGrid.dataProvider[getTodaysGrid.selectedIndex]['count_id']);"

    Once the item is selected, the SpecificAccount.cfm page is opening properly.
    So far it's working great. Now if I am going back to the previous page using a
    cfinput type='submit'. The page keeps saying: 'The form data has expired,
    Please reload this page in your browser.'

    How to have to page reloaded properly?

    main.cfm
    <cfform name="form1" method="post" format="flash">
    <cfformgroup type="panel" label="Today's Call Backs
    (#getTodays.recordCount#)">
    <cfgrid name="getTodaysGrid"
    query="getTodays"
    onchange="getUrl('SpecificAccount.cfm?count_id=' +
    getTodaysGrid.dataProvider[getTodaysGrid.selectedIndex]['count_id']);">

    SpecificAccount.cfm:
    <cfform format="flash" action="act_specificAccount.cfm" >
    <cfgrid name="grid1" query="getDetails" />
    <cfform>

    act_specificAccount.cfm:
    <cflocation url="main.cfm">

    Ghis Guest

  2. Similar Questions and Discussions

    1. Flash Form data had expired
      When the back button it clicked the form on the previous page has expired. What?s a good way around this?
    2. form data expired
      Is there an ultimate way to get rid of this error message when using flash cffrom? The form data has expired, Please reload this page in your...
    3. 'Form data has expired'
      Hey all, I seem to be having a problem with my flash form. I made a form which takes values from a GET then querys a database to populate the...
    4. mx 7 flash form The form data has expired, Please reloadthis page in your browser.
      When i first go to any flash form on my CFMX 7 server i get the following message. The form data has expired, Please reload this page in your...
    5. System.Data.SqlClient "Timeout expired" causing ASP.net web application to automatically restart.
      I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET...
  3. #2

    Default Re: Form data has expired

    Are you using a "back" function or a "goto" function? If you are going "back" then you will need to catch the error and rewrite the page. Otherwise just prepopulate the form with stored data.
    Dinghus Guest

  4. #3

    Default Re: Form data has expired

    I use the following code;

    <!--- DO NOT CACHE THE PAGE --->
    <cfoutput>
    <cfheader name="expires" value="#now()#">
    <cfheader name="pragma" value="no-cache">
    <cfheader name="cache-control" value="no-cache, no-store, must-revalidate">
    </cfoutput>

    I place it just below my <body> tag. - It seem to work pretty well

    CoffeeCup Guest

  5. #4

    Default Re: Form data has expired

    So you tell it not to store the page and then want it to store the page?
    Dinghus Guest

  6. #5

    Default Re: Form data has expired

    What I did was: I put @ cfform the property timeout="10000" and that's it, no more timeout problems at all.
    cesarmejia Guest

  7. #6

    Default Re: Form data has expired

    CoffeeCup: You are awesome. What a PAIN this was to try and figure out! Thanks that worked great for me.
    MeltdownMX 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