A structure is nothing more than a data type, like a string, integer or
array.  Like those data types you can also scope a structure, by making it
an application, client, or session variable.

If a certain structure is going to be used to tract a user's preferences
then you would want to give it a session scope.  Like below:

<CFSET session.AStructure = StructNew()>
<CFSET session.AStructure.Username = "Jim">

then just use it like any other session variable.

Byron


-----Original Message-----
From: Robert Everland III [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 04, 2000 2:21 PM
To: [EMAIL PROTECTED]
Subject: Structures across the server?


        Are structures used throughout a server or are they used only per session?
I know I have to convert a structure to wddx to use it other places but I am
looking to use a lot of strucutres throughout my application and want to
make sure that the structures won't get messed up. Should I use something
like sessionid to help distinguish the stuctures or does it even matter.

Bob Everland

----------------------------------------------------------------------------
--
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.


------------------------------------------------------------------------------
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