Folks,
I now need some help on another topic.
I am developing a web page that will pose a set of questions to users,
analyze their responses, and then pose other questions based on those
responses. This cycle can continue for a very long time.
I am keeping track of the questions on the page being displayed by storing
information in an array with one element for every question that get placed
on the page. The contents of that element is a structure that contains the
information about the query (query_text, answer_type,
answer_form_field_name, etc. etc.). The array is in the Session scope. The
action template for the question page will analyze the user's responses by
looping through the array to determine how to handle the form fields..
My question is: as I place a question on the page and need to fill in the
structure that will go into the array, should I do something like <cfset
Session.question_info = StructNew()> ??? If so, it seems that I will be
constructing an indefinitely large number of these strucures(one for each
question on a page and pages being constructed and displayed until the user
exits from the process).
Won't that eat up an inordinate amount of memory? Is there a way to free up
or delete all of the structures that were constructed for a page after it is
analyzed and before the next page is begun? Or is that not necessary?
Can anyone enlighten me?
Thanks,
-- Tim Dempsey
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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.