Solved

Store transaction in memory

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
What You Need to Know when Searching for a Webhost Provider
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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