Solved

Global Array Variable in CF

Posted on 2000-03-07
6
187 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
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
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.

 

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

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…
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

679 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