What could be happening is that you are setting an application variable somewhere 
other than your application.cfm file(s) and trying to read it in another template.  If 
the application times out, then that application variable wouldn't exist on the 
execution of the said template, but all the application vars you set after you checked 
to see if the APPLICATION.GlobalsDefined variable was defined WOULD exist.  In a 
nutshell, are you reading an application var that no default is being set for in your 
application.cfm file(s) ?  If so change your timeout but more importantly make sure 
your app vars are accounted for to avoid this problem.

-Andy

> -----Original Message-----
> From: Cameron Childress [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 21, 2001 12:39 PM
> To: CF-Talk
> Subject: RE: Mysteriously vanishing application variables
> 
> 
> You are setting app variables to timeout in one hour.  A more typical
> setting would be measured in days.  Typically the 2 day default is what i
> use.  Try increasing the setting a little (CreateTimeSpan( 2, 0, 
> 0, 0 )) and
> I think your problem will go away.
> 
> -Cameron
> 
> --------------------
> Cameron Childress
> elliptIQ Inc.
> p.770.460.7277.232
> f.770.460.0963
> 
> Join the ColdFusion Mafia!
> http://stats.distributed.net/rc5-64/tmsummary.php3?team=865184487
> 
> 
> 
> 
> > -----Original Message-----
> > From: Stuart Miller [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 21, 2001 12:09 PM
> > To: CF-Talk
> > Subject: Mysteriously vanishing application variables
> >
> >
> > Hello,
> >
> > I have an application that seems to mysteriously lose it's application
> > variables and then throws the 'parameter cannot be resolved' error.
> > Shouldn't be due to timing out because the problem will pop up in
> > the middle
> > of a session. Anyway, there is code that checks for
> > IsDefined(APPLICATION.GlobalsDefined) and sets them if not. When
> > the page is
> > refreshed, the application variables are back. The problem only occurs
> > rarely and seemingly at random. I know that doesn't help, but I'm
> > stumped....
> >
> > Here's the code:
> >
> > <!--- Application Declaration --->
> > <cfapplication name="SomeApplication"
> >                clientmanagement="Yes"
> >                setclientcookies="No"
> >                applicationtimeout="#CreateTimeSpan( 0, 1, 0, 0 )#"
> >                clientstorage="ClientVars">
> >
> > <cfparam name="InitGlobals" default=0>
> >
> > <!--- If Application variables don't exist --->
> > <cfif NOT IsDefined( "APPLICATION.GlobalsDefined" )>
> >     <!--- Force a re-initialisation --->
> >     <Cfset InitGlobals = 1>
> > </cfif>
> >
> > <!--- If we need to initialise variables --->
> > <cfif InitGlobals>
> >
> >     <!--- prevent multiple memory access --->
> >     <cflock timeout="10"
> >                      throwontimeout="Yes"
> >                      name="STOAT_APP_GLOBALS"
> >                      type="EXCLUSIVE">
> >
> >             <!--- Clear out existing app variables --->
> >             <cfscript>
> >                     StructClear( APPLICATION );
> >             </cfscript>
> >
> >             <cfset APPLICATION.SomeApplicationVars = "SomeValues">
> >
> >             <cfset APPLICATION.GlobalsDefined = 1>
> >
> >     </cflock>
> >
> > </cfif>
> >
> > Anyone else have this happen to them?
> >
> > Thanks in advance.
> >
> > --Stuart
> >
> >
> > Stuart Miller
> > Rocom New Media
> > t: 01937 487492
> > e: [EMAIL PROTECTED]
> > w: http://www.rocom.co.uk
> >
> >
> >
> > Archives: http://www.mail-archive.com/[email protected]/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to