this might be an example of isDefined() being preferred over structKeyExists().
<cfif NOT isDefined('session.appfee')>
the code i provided goes here
</cfif>
On 9/21/07, erik tsomik <[EMAIL PROTECTED]> wrote:
> I tried this code but it saying that the session does not exist
>
> <cfif NOT structKeyExists(session, 'appfee')>
> <cfoutput>
> <meta http-equiv="refresh"
> content="5;url=http://olympus.scs.jhu.edu/#session.URL#/admissions/">;Your
> session has expired. You will be redirect in 5 seconds.
> <a href="http://olympus.scs.jhu.edu/#session.URL#/admissions/">click
> here</a> if you are not automatically redirected.
> </cfoutput>
> </cfif>
>
>
> >well, one issue you're going to run into off the bat is that if the
> >session is expired, the #session.URL# variable will be undefined. so
> >you'll have to address that.
> >
> >but it's no different than the logic you used in your initial post.
> >
> ><cfif NOT isDefined('session.appfee')>
> > the code i provided goes here
> ></cfif>
> >
> >
> >>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289138
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4