Matt,

Is there any performance gain using structKeyExists(url, 'init') over
isdefined("url.init") ?
Is it a best pactice thing or your own preference?
Ric.


On Feb 17, 2008 7:48 AM, Matt Williams <[EMAIL PROTECTED]> wrote:

> On Feb 16, 2008 3:40 PM, Chad Gray <[EMAIL PROTECTED]> wrote:
> > How do you reset application variables?
> >
> > I am using application.cfc to set some application variables and cant
> figure out how to reset them so they reload with different data.
>
> One way is to add this in onRequestStart:
> <cfif structKeyExists(url, 'init') AND url.init EQ "myInitPass">
>  <cfset onApplicationStart() />
> </cfif>
>
> Then you can reset them by adding init=myInitPass into the url.
>
>
> --
> Matt Williams
> "It's the question that drives us."
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299238
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to