2 Replies Latest reply: May 11, 2012 8:24 AM by s6868 RSS

    Can you catch form has expired exception and reload page?

    s6868 Community Member

      I have a cfcalendar wrapped with cfform, every first time start the application, it either is empty or give me form data as expired message.

      I have tried to set cfform timeout to a 100 or 200 seconds, but if you close the application and next time open it (if after the timeout limits) it shows the form data has expired message again. If I don't set or set it to 0, then the next time I open the browser, it give me an empty form page.

      So I wonder if there is a way to catch that exception, and then make it reload the page?


      Any ideals to solve the problem.




      <cfheader name="expires" value="#now()#">

      <cfheader name="pragma" value="no-cache">

      <cfheader name="cache-control" value="no-cache, no-store, must-revalidate">



      <cfform name="testForm" format="flash" onLoad="#disableRanges#" height="320" width="420"   >

           <cfcalendar name="selectedDate" 


                  mask="mmm dd, yyyy"


                  monthNames="JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC"


                  width="270" height="200"

                  onchange="getURL('index.cfm?selectDate=' + (selectedDate.selectedDate.getMonth()+1) + '/' +selectedDate.selectedDate.getDate() + '/' + selectedDate.selectedDate.getFullYear());"