Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cookie check if not there to redirect

Status
Not open for further replies.

spano

Programmer
Jun 29, 2004
4
GB
Hi, i am very new to cfm and need a code which will allow viewers to go to page1.cfm have a link to page2.cfm and work, but i dont want the page being accessed other than that. so no on can type in and get in is this a cookie thing or a redirect?
 
Probably the best thing to do is using a Session Cookie to store a value on page1.cfm and as you get to page2.cfm, check if that Session Cookie has that value. If it does not have it, automatically redirect the visitor to page1.cfm

Use

Session.variable_name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top