I am trying to create an application file in a seperate folder that checks for a session variable and then if it exists then it lets you view the page. I am able to set the session variable by checking some info against a database and then setting the varable if the info is correct. However when I check for the variable I want it to be redirect you to the "logon" page if the session variable does not exist. When I perform the cfif statement though, it redirects you to the logon page no matter whether the variable exists or not. Does anyone have any ideas why it ignors the cfif statement? The code is below.