I am working on a PHP system where I need to have a couple of variables constantly set throughout all classes used. Data is mostly retrieved through ajax calls and MySQL queries.
The value of each variable will not change unless a specific link is clicked.
What is the best method to achieve this? I am a bit stuck because I can use neither global variables, nor a cookie.
Thanks in advance.
N.
You should look into sessions.
Here is a simple example of using session:
Some html later on …