Ryan,

Here's my read on things.

First there is nothing wrong with using application scoped variables, they
just aren't present in the sample apps.  In fact they're often used for
query caching.  The request scope is a global thread safe variable scope.
To get out of having to do locks I often make request. scoped pointers to
whatever application scoped variables I've set.  The reason for not using
session scope is for scalability, client scoped variables scale up to
clustered servers much cleaner than session scoped variables do.  Typically
though a SQL or Oracle server would be setup to store them instead of
cookies or the registry.  If your application will never be (and never say
never) scaled up to multi homed setup then by all means use the session.
scope.

Hope this helps,

Fred T. Sanders
Charlottesville, VA

----- Original Message -----
From: "Ryan Wood" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 07, 2000 9:56 AM
Subject: Global Variables


> After doing ASP/CF programming a couple years now, I realized that I am in
> great need of a comprehensive programming methodology. I just learned
about
> fusebox about a week ago and am trying to get a relatively quick grasp on
> the concepts. I have downloaded and viewed as much code as I code find and
> have a few questions about global variables.
>
> I understand that you set them in the app_globals file, instead of the
> application.cfm. Fine. I also notice that there is little use of the
> application and session variable scopes opting for the attribute (I know
> about the <formurl2attributes> tag) and request scopes.
>
> Does fusebox purposely avoid the application/session scopes? What exactly
is
> the request scope? Is it global?
>
> Also, is seems that client variables are fairly often. I have not used
them
> personally because I don't like the idea of secure info begin stored on
the
> client side (cookie/registry). What is the advantage of using client
> variables rather than session variables, other than persistence from one
> session to another?
>
> I have an application that is about 35% complete and am considering
> re-writing the existing code in fusebox, but I currently have numerous
> session and application variables that I am not sure what to do with.
>
> Thanks in advance for your help.
>
> __
> Ryan Wood
> Intranet Web Developer
> Corporate Systems-MIS
> Datastream Systems, Inc.
> 864.422.5260
> 800.955-6775 x5260
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to