I will recommend you using the Session object. For example, in Page1, you set the: Session("IHaveBeenHere") = TRUE. The in Page2, you check: if Session("IHaveBeenHere") = TRUE then doWhateverYouWant ELSE Response.Redirect("page1.asp").
Or something to that effect.
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-