Are you submitting data to a database?  If that is the case, it might be a 
better idea to use CFTRANSACTION to handle all of your inserts, removes, 
etc and then commit the transaction at the very end of your app.

Would this work for you?



At 04:48 PM 11/16/00 -0600, Bruce Heerssen you wrote:

>Three points...
>
>1. Use some server side processing to see if the form has been submitted 
>before
>and reject the new data if it has. You should do the same before serving the
>form also. Reason: The page source has been sent to the browser and hence 
>can be
>recovered by the user - NO MATTER HOW YOU TRY TO PREVENT IT.
>
>2. You should include appropriate meta tags in your source so that the browser
>will know that the page contains data that is of a sensitive nature and 
>that it
>should not cache the page. Pragma: no-cache and expires both do this. 
>That's how
>IE knows that it should refresh a form instead of displaying the data 
>previously
>filled in.
>
>3. Last, but certainly not least, CF has NO control over the browser 
>itself. CF
>is a server-side processing language, and as such, has no DIRECT contact with
>the client. The only way I know of to disable a back button in a browser is to
>use Javascript.
>
>I understand that that is probably not the answer you were looking for, but I
>hope that it will give you a little direction. Please contact me off-list 
>if you
>would like more info.
>
>-- Bruce
>
>"Karenina" <[EMAIL PROTECTED]> wrote in message
>news:<007001c04fcb$af91d7a0$[EMAIL PROTECTED]>...
> > This is a multi-part message in MIME format.
> >
> > ------=_NextPart_000_006B_01C05006.4FC350C0
> > Content-Type: text/plain;
> >       charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > Dear Friends,
> >        I have created a critical web based application which is not =
> > allowed the user to press BACK and FORWARD button in order to prevent =
> > data integrity.=20
> >
> > How do we disable the BACK button using CF, instead of using Javascript
> > history.back() ?
> >
> > Another way is using session struct to record each template ID.
> >
> > Can we implement more efficient way to do it?
> > Thanks in advance.
> >
> > Regards,
> >
> > Karenina
> >
> >
> > ------=_NextPart_000_006B_01C05006.4FC350C0
> > Content-Type: text/html;
> >       charset="iso-8859-1"
> > Content-Transfer-Encoding: quoted-printable
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > <HTML><HEAD>
> > <META content=3D"text/html; charset=3Diso-8859-1" =
> > http-equiv=3DContent-Type>
> > <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
> > <STYLE></STYLE>
> > </HEAD>
> > <BODY bgColor=3D#ffffff>
> > <DIV><FONT size=3D2>Dear Friends,</FONT></DIV>
> > <DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have created =
> > a critical=20
> > web based application which is not allowed the user to press BACK and =
> > FORWARD=20
> > button in order to prevent data integrity. </FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT size=3D2>How do we disable the BACK button using CF, instead =
> > of using=20
> > Javascript</FONT></DIV>
> > <DIV><FONT size=3D2>history.back() ?</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT size=3D2>Another way is using session struct to record each =
> > template=20
> > ID.</FONT></DIV>
> > <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT size=3D2>Can we implement more efficient way to do =
> > it?</FONT></DIV>
> > <DIV><FONT size=3D2>Thanks in advance.</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT size=3D2>Regards,</FONT></DIV>
> > <DIV>&nbsp;</DIV>
> > <DIV><FONT size=3D2>Karenina</FONT></DIV>
> > <DIV>&nbsp;</DIV></BODY></HTML>
> >
> > ------=_NextPart_000_006B_01C05006.4FC350C0--
> >
> > 
> ------------------------------------------------------------------------------
>------------------
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
>message with 'unsubscribe' in the body to [EMAIL PROTECTED]
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Structure your ColdFusion code with Fusebox. Get the official book at 
>http://www.fusionauthority.com/bkinfo.cfm
>
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>-=-=-
>SBG-Priority: 3 (Normal) http://www.internz.com/SpamBeGone/

-- 
Michael She
I m a g i n e   C o m m u n i c a t i o n s
Company E-mail: [EMAIL PROTECTED]
Personal E-mail: [EMAIL PROTECTED]
ICQ UIN: #243466
Personal Homepage: http://www.michaelshe.com (Under Construction)
Imagine Communications: http://www.imagineer.net
PGP Fingerprint: 9A24 1DA9 39B8 0A0C C5ED 6E5D 45E9 075A 51CD 66A1

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

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to