?
Solved

Store transaction in memory

Posted on 2008-10-16
2
Medium Priority
?
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 2000 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 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