On Thu, 18 Jan 2001 13:41:41 -0500, "Mike Grey"
<[EMAIL PROTECTED]> wrote:

>What method is used to stop data from being reposted when a user attemps to
>reload an action page.

I use session variables. For example:

<!--- FORM.CFM --->
<cfset session.thisform = true>
<form action="action.cfm">
        ...various form stuff...
</form>

<!--- ACTION.CFM --->
<cfif session.thisform>
        <cfset session.thisform = false>
        ...SQL, logic and so on...
<cfelse>
        <cflocation url="form.cfm">
</cfif>

Obviously, you need to lock those session variables or Duplicate()
them into the request scope, but that's the basic idea.

--
Roger



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to