Better practice, convenience, who's to say :OD

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
Sent: 18 August 2007 14:11
To: CF-Newbie
Subject: Re: What does this line do? session.siteSection = "#sec#"


True, but is it better practice to check and define scope?  I would say so.

-----Original Message-----
From: Adrian Lynch
To: CF-Newbie
Sent: Sat Aug 18 14:05:31 2007
Subject: RE: What does this line do? session.siteSection = "#sec#"

But they might not want to only check in the variables scope, form, url etc.

Adrian

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
Sent: 18 August 2007 12:04
To: CF-Newbie
Subject: Re: What does this line do? session.siteSection = "#sec#"


It could also be "simplified" to

<cfset session.siteSection = variables.sec>

-----Original Message-----
From: Tom Hines
To: CF-Newbie
Sent: Sat Aug 18 05:49:28 2007
Subject: What does this line do? session.siteSection = "#sec#"

<CFIF ISDEFINED("sec")>
        <cfset session.siteSection = "#sec#">
</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-Newbie/message.cfm/messageid:3007
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to