Thanks for your help, but I thought that once you define the variables in 
the APplication scope they are yours to use them at any time and the 
<cfapplictioan tag does not need to run again until the application TIMES 
OUT. SO if thats the case, Application.DSN would be defined for 20 min, and 
it would skip redefining the application scope again. Am I wrong? IF 
Application.DSN is NOT DEFINED, then it will run the CFapplication tag, 
whats wrong with this logic?

THanks

At 06:02 PM 12/14/2004, you wrote:
>You're checking for application.dsn before CFApplication (therefore it
>won't have been defined).. Move CFApplication above the isdefined and
>you should be laughing..
>
>Martin Parry
>http://www.beetrootstreet.co.uk
>
> >Hello,
> >
> >I am having the worst time with the Application scope. I thought that
> >if I define APplication.DSN sometime after this initialized, it will be
>
> >set until it times out. HOwever, this block of code gets executed each
> >time I go to a new page, and the Application.name gets redefined.. ANy
> >ideas what I am doing wrong?
> >
> >  <cfif not ISDefined("Application.DSN")>
> >         <cfparam name="URL.DSN" default="cfbb_iaba">
> >         <cfapplication name="#URL.DSN#" sessionmanagement="Yes"
> > clientmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,40,0)#"
> > applicationtimeout="#CreateTimeSpan(0,0,20,0)#">

   <cfset Application.DSN = "#URL.DSN#">

> ></cfif>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190170
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to