Solved

Global Array Variable in CF

Posted on 2000-03-07
6
177 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now