Yes... 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 -----Original Message----- From: Sean Hynes [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 14:20 To: CF-Talk Subject: Fwd: Application tag and scope >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)#"> ></cfif> > >Also, don't how do you reference #Application.name# set above, That is >invalid variable ? > >Thanks > >Sincerely, > >Sean Hynes >Customer Service: 678.528.9606 >President - WebLogix >http://www.weblogixinc.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187533 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