In order to go to search page , users have to login . If they
skip the login page and try to jump into the search page then it
will redirect them to login page so they can login. Please look at
my code for three pages and tell me what did I have wrong
Rename your "application.cfm" to "validateuser.cfm" and
include that file in "search.cfm".
Application.cfm has special features in ColdFusion and is not
exactly equivalent to Global.asa for ASP. It is called before every
cfm page is executed including your login.cfm.
Also before you use session variables, set your
application.cfm to enable session management. See the coldfusion
example applications that are installed optionally on how the login
screen & sessions are managed.