you could set some kind of variable (ie session, cookie, url, etc) that
would only be 
set on page 1 and if it doesn't exist then <cflocation> them to page 1. Code
example below.

--Page 1---
<cfset session.VisitedPage1 = 'Yes'>


-- Page 2 ---
<cfif NOT IsDefined("session.VisitedPage1")>
        <cflocation template="page1.cfm">
</cfif>

Hth,
Robert



-----Original Message-----
From: Parker, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 4:53 PM
To: CF-Talk
Subject: One page calls another



A little while ago I wrote to the list seeking some advice on how I could
ensure that a given page could not be loaded (lets call it B) unless the
user had come, by some means, from another specified page (lets call it A),
i.e. if the user went to direct to page B they would automatically be
directed back to page A.

Thank you to all of those that replied.

Because I'm not using forms in this app, using hidden fields, doesn't seem
workable. Someone suggested that I use HTTP Referrer but its unclear to me
how to use this, despite some research. Can anyone give me some
samples/examples on how to code this please.

TIA!!!!!


+++++++++++++++++++++
Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287

+++++++++++++++++++++



****************************************************************************
This e-mail is intended for the use of the addressee only. It may contain
information that is protected by legislated confidentiality and/or is
legally privileged. If you are not the intended recipient you are prohibited
from disseminating, distributing or copying this e-mail. Any opinion
expressed in this e-mail may not necessarily be that of the WorkCover
Corporation of South Australia. Although precautions have been taken, the
sender cannot warrant that this e-mail or any files transmitted with it are
free of viruses or any other defect.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and destroy the original e-mail and any copies.
****************************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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