> Does anyone know of a good way to flush the vars stored in the application
> scope? I tried setting the applicationtimeout to CreateTimeSpan(0,0,0,0)
> and
> that didn't do anything. I'm not sure how cfflush works but I think that
> has to
> do with headers and not with ColdFusion cacheing. Anyway, if any of you
> has
> a good tip for this I'd appreciate it.
<cfflush> is only indirectly related to headers -- it tells the cfserver to
send whatever portion of the page has completed to the browser before
continuing processing the page, so the browser gets the page
incrementally... The relationship to headers is that you cant use anything
on the page after a cfflush tag that would alter the headers like cfheader,
cflocation and I think cfcookie and possibly cfform.
As to your question, try this:
<cflock scope="application" type="exclusive" timeout="10">
<cfscript>
temp = application.applicationname;
StructClear(application);
application.applicationname = temp;
</cfscript>
</cflock>
That should give you a clean-slate, just as tho the <cfapplication> tag had
just been processed for the first time.
Isaac Dealey
www.turnkey.to
954-776-0046
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists