Session and application variables are global
variables. Once they are created, they can be accessed
by any page in a ColdFusion application.  The
application.cfm file must be used to name the
application before application scoped variables can be
used and session managment must be turned on (using
the same file- application.cfm) before session
variables can be used in a ColdFusion application.

Even though the scope of both the session and
applicaton variables are the same, they work
differently.  Session variables are unique to each
user, thus they serve the purpose of keeping track of
data that is unique to each user.  Example of such
data is a username or shopping cart.  The shopping
cart should be associated with each individual.  That
is where session variables can be used.  

Application variables are used to keep track of data
that does not need to be unique to each user but is
accessed on many pages in the application.

Application and Session variables are explained very
well in Allaire's "Fasttrack to ColdFusion" Class.

The evaluation function can be used to evaluate an
equation in a string Evaluate("5+4") or it can be used
to evaluate the value of a variable inside of another
variable.
The evaluate function is covered in Allaire's
"Advanced ColdFusion Development" class.


--- "Haryono ..." <[EMAIL PROTECTED]> wrote:
> hallo, everyone
> I want to ask some question.
> What is the use of  Session and Application
> Variable?
> What is the use of evaluate dynamic expression ?
> 
> Thank's for your answer.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to