I'm really new to CF (see my other questions) and have some terrible code to work with. We're trying to gracefully fail if the session has expired (the user is proceeding through a series of choices, and when they've reviewed everything, it will be written to the database; until then it's all tracked in session vars). Right now if the session expires before they submit the final time, the app bombs with a CF error "Session.foobar" is not defined...
In my Application.cfm I have (3 minutes is for testing purposes)
<CFAPPLICATION NAME="crhopPublic.1" CLIENTMANAGEMENT="NO" SESSIONMANAGEMENT="YES" SESSIONTIMEOUT="#createTimeSpan(0, 0, 3, 0)#">
<CFPARAM name="session.IsLoggedIn" default="false">
<CFIF "session.IsLoggedIn" EQUAL "false">
And when the user first logs in I have
<cfset "session.IsLoggedIn" = "true">
What's wrong with this picture? (Even if "true" and "false" are literal strings instead of booleans, this logic should work, at least to my mind.)