The following sections describe best practices that can help you increase the performance of Flash forms.
Flash forms are sent to the client as SWF files, which ColdFusion must compile from your CFML code. The following techniques can help limit how frequently ColdFusion must recompile a Flash form.
The cfform tag timeout attribute specifies how many seconds ColdFusion retains Flash form data on the server. When a Flash form is generated, the values for the form are stored in memory on the server. When the Flash form is loaded on the client, it requests these form values from the server. If this attribute is 0, the default, the data on the server is immediately deleted after the data has been requested from the Flash form.
A Flash form can be reloaded multiple times if a user displays a page with a Flash form, goes to another page, and uses the browser Back button to return to the page with the form. This kind of behavior is common with search forms, login forms, and the like. When the user returns to the original page:
If your form data contains sensitive information, such as credit card numbers or social security numbers, you should leave the time-out set to 0. Otherwise, consider setting a time-out value that corresponds to a small number of minutes.
Flash forms require sticky sessions when used in a cluster.