Solved

Global Array Variable in CF

Posted on 2000-03-07
6
190 Views
Last Modified: 2013-12-24
Is it possible to create a sesssion or client variable to act as a global array to hold values for one page while the user roams the site before "Checking Out" at the page where the array is diplayed.

Thanks in advance.
0
Comment
Question by:pyyke
[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
6 Comments
 

Expert Comment

by:pdliles
ID: 2595441
Sure.... the array is created as a variabe and stays in that condition for as long as you want.. doesn't have to be displayed... and since it is a session.variable you can call up the contents of the array anywhere you want!

If you want it readily available, put it on a javacript popup page callable on any page you want??
0
 
LVL 5

Expert Comment

by:nathans
ID: 2597111
It sounds like you are either NEW to ColdFusion or you have a special need.  pdliles, has answered your question but I wonder if you need more info???  If not pdliles has answered your question.
0
 
LVL 37

Expert Comment

by:meverest
ID: 2598733
or you can create it as an application variable - globally available to any session.

cheers.
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 

Expert Comment

by:smuniasamy
ID: 2628332
I just checked global declaration of array variable with session variable. It works well as expected. I strongly agree with pdliles.
0
 
LVL 5

Expert Comment

by:nathans
ID: 2686213
Are you reading this?
0
 
LVL 5

Accepted Solution

by:
nathans earned 75 total points
ID: 2907322
Session, Application, or Client Var.'s will do this.


Please read this either grade it or delete it.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
What You Need to Know when Searching for a Webhost Provider
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

738 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