On Fri, 18 Jun 2004 10:08:29 +1000, Ryan Sabir <[EMAIL PROTECTED]> wrote: > I'm just having a think about the best way to set global constants for > my applications, these are things like datasource names and passwords, > upload directories etc... as far as I know there are a few ways to set > these up, these being: ... > The dumbest way looks like the first method where you are setting > request scope variables every time any page is called...
As written, your first method is setting *page* scope variables, not *request* scope variables and is, indeed, pretty dumb :) > Is there a best practice for this type of this? Use request scope: <cfset request.myDSN = "foo" /> -- Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
