Solved

Store transaction in memory

Posted on 2008-10-16
2
203 Views
Last Modified: 2013-12-24
I have several items that instead of creating a table and storing it there, I would like to store it in memory so I can use it later.
I am new to this so please excuse the layman's verbage.
0
Comment
Question by:usky1
2 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 22735768
You have to add a cfapplication tag and define a session for your pages using the same application.
In the session scope you can define complex variables like arrays and structures. There you can keep your table data.

http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-pa3.htm
   <cfapplication name = "ETurtle"
      sessionTimeout = #CreateTimeSpan(0, 0, 0, 60)#
      sessionManagement = "Yes">

http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funca103.htm#wp1113520
  <cfscript>
   session.employee = StructNew();
   StructInsert(session.employee, "firstname", FORM.firstname);
   StructInsert(session.employee, "lastname", FORM.lastname);
   StructInsert(session.employee, "email", FORM.email);
   StructInsert(session.employee, "phone", FORM.phone);
   StructInsert(session.employee, "department", FORM.department);
 </cfscript>
0
 

Author Closing Comment

by:usky1
ID: 31506906
This helps me understand the use of sessions better.
Thanks you for adding the docs links and your help.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now