Strucures are stored in memory so it seems odd that they persist over a
reboot unless you check for their existence and create them if they don't
exist. Otherwise you need to run a script to load them upon reboot.

However client variables(CFID and CFTOKEN) are stored in a structure and the
default storage area is the system registry. You may choose to store them in
a database by changing the settings in the CF admiin. Therefore client
variables are persistent over a reboot.

Session variables are stored in memory in a structure but are destroyed upon
reboot or upon the user closing the browser.

All of the objects in a structure cannot be stored in a database as is.
(Neither can an array) You may use WDDX to serialize them into a packet and
store that in a database field because the result is a string. You may do
the same with an array. To rebuild the structure, pull the packet out of the
database and then serialize it into the structure. This is a good way to
build a clusterable application that uses client variables or other
structures for setting user preferences.

HTH

James McCullough



-----Original Message-----
From: Michael She [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 25, 2000 9:54 AM
To: CF-Talk
Subject: Re: Structures: Where is data kept


I believe you have the option of storing session variables in the registry
(not sure where) or in a specific datasource.


At 09:47 AM 11/25/00 -0500, you wrote:

>Once a structure has been created and populated, where is the data kept? I
>can't find it in the registry anywhere but it persists across server
reboots
>so it is obviously somewhere in the machine. If I need to get at it to move
>it to a different server, where do I go to get it?
>
>Paul Sinclair
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Structure your ColdFusion code with Fusebox. Get the official book at
>http://www.fusionauthority.com/bkinfo.cfm
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
>-=-=-
>SBG-Priority: 4 (Low) http://www.internz.com/SpamBeGone/

--
Michael She
I m a g i n e   C o m m u n i c a t i o n s
Company E-mail: [EMAIL PROTECTED]
Personal E-mail: [EMAIL PROTECTED]
ICQ UIN: #243466
Personal Homepage: http://www.michaelshe.com (Under Construction)
Imagine Communications: http://www.imagineer.net
PGP Fingerprint: 9A24 1DA9 39B8 0A0C C5ED 6E5D 45E9 075A 51CD 66A1

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to