Solved

Store transaction in memory

Posted on 2008-10-16
2
208 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 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

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.
What You Need to Know when Searching for a Webhost Provider
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
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 …

724 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