Hi,
Your architecture won't resemble typical single user architecture. So you have lots of variables - write one or more helper classes to hold the variables, that way you just pass one reference and store just one variable in the session. (think JavaBeans!)
Thanks for that Bill. I was wondering if you could provide me with a couple more breif explanations.
The first is, when you say that you use a helper class to hold all the variables, how do you do that? Could you give me a really simple example or something? I do have a helper class for what Im trying to do. What it contains is a doHeader/Footer() and a getConncetion().
I dont know what else I could put in it though. The sorts of variables I have are things like candidateNo, candidateName, questionsAnsweredCorrectly and questionsLeft.
As you can maybe tell, I'm making an online
test system.
The other thing is, do you only use global variables when you want to share information between threads? How else might you share information? Is there any preffered way?
Thanks so much to Bill and anyone else who can advise. It really is much appreciated.
Kind regards
Simon