Cookies are good for other jobs, and you are never 100% secure that the user will have them activated.
I suggest a variable that passes through pages via HTTP.
You can use $HTTP_GET_VARIABLES
Output of variable names and their values passed through HTTP using the "POST" or "GET" method in a form for example.
Code: Select all
while(list($key, $value) = each($HTTP_GET_VARS))
echo "$key = $value<br>";
I hope it helped