Skip to main content
Participant
January 12, 2007
Question

Form data has expired

  • January 12, 2007
  • 6 replies
  • 3190 views
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?
This topic has been closed for replies.

6 replies

Inspiring
May 11, 2012

Any one knows if we can catch the exception and reload the page? Thanks.

Participant
March 10, 2007
CoffeeCup: You are awesome. What a PAIN this was to try and figure out! Thanks that worked great for me.
Inspiring
February 4, 2007
What I did was: I put @ cfform the property timeout="10000" and that's it, no more timeout problems at all.
Inspiring
May 11, 2012

I have done so, but after the time limit, it gives you the same message again or an empty page if you start a new browser days later. Are you sure you have no problem even after the time limit? Thanks.

Inspiring
January 19, 2007
So you tell it not to store the page and then want it to store the page?
Known Participant
January 19, 2007
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
Inspiring
January 18, 2007
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.