> If I have an application variable "application.myvar" and I reset it on any
> page, it resets that variable for the entire application.
>
> Is there a way I can reset an application variable for just the page where
> the reset lives?
No. Don't take this the wrong way, but that would defeat the purpose
of Application variables. If you want to do something else, you'll
need to copy to a local variable and use that instead. Back when
Application and Session scopes caused stability problems, it was
pretty common to do something like this:
<cflock scope="Application" type="readonly">
<cfset myApp = Application>
</cflock>
.... your page ...
<cflock scope="Application" type="exclusive">
<cfset Application = myApp>
</cflock>
Of course, this wasn't really a good idea, just pointing it out for
historical completeness I guess. If you really needed to do something
like this, you could copy the Application scope in onRequestStart, and
copy it back on onRequestEnd. But, yecch.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348834
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm