On 10/1/00, paul smith penned:
>Well, I had been assuming that <cfset application.countries = getcountries>
>only set a pointer and that application.countries then had the same scope
>as getcountries.  This is apparently only so for "complex data types like
>structures" (whatever they are other than structures) according to Allaire.

No. Once you run get countries, the query, then:
<cfset application.countries = getcountries>

<cfoutput query="application.countries">
is just like calling
<cfoutput query="getcountries">

Except the entire recordset from the getcountries query is in memory 
in the application.countries variable.

The application scope is identical to the session scope, except:

Session scope variables are only available to the user that set them 
under the application name set in the cfapplication tag, based on the 
user's cfid and cftoken.

Application scope variables are available to everyone under the 
application name as set in the cfapplication tag.

I'm relatively sure you can store any complex structure in session 
and application variables. With client variables, anything other than 
simple strings must be serialized with WDDX.

You can also update the data available in the variable by different means.
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to