By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,567 Members | 1,554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,567 IT Pros & Developers. It's quick & easy.

How to maintain array values over multiple accesses?

pradeepjain
100+
P: 563
How do I maintain an array over number of different accesses? When ever the page gets refreshed the doctor index maintained by incrementing will be lost right?

Should i make it a global variable? How is it that I maintain it in memory?
May 7 '10 #1
Share this Question
Share on Google+
5 Replies


P: 8
Is the page being used by one person or many?
May 7 '10 #2

pradeepjain
100+
P: 563
@AngryJoe
yeah.Its being accessed by 2 or more persons at same time...
May 8 '10 #3

P: 8
What does the website do?

You could read/write it from a text file or a database.
May 8 '10 #4

pradeepjain
100+
P: 563
@AngryJoe
hey its typically a web based application which will be run in an hospital.
May 8 '10 #5

P: 8
I would have suggested using Cookies, but that's more of a per user thing.

If its an application run by a hospital, I would assume a database is involved. The right way to do this, in my opinion, is either store these values in a database or create a temp file on the webserver where you can store them and read from them as you want.
May 8 '10 #6

Post your reply

Sign in to post your reply or Sign up for a free account.