Hello,
I have a script that has an .inc file included. The .inc file defines a function that is called from the original script. The .inc file syntax under investigation is :
//~~
session_start();
session_register("var1");
session_register("var2");
$var1 = "XXX";
$var2 = "YYY";
// end
ok, now the origional script prints an achor tag
with the <?=SID?> on the end. (it works fine)
this anchor Now will link me to another (3rd) script that I want to use to print the values of var1 and var2.
- even though the session_is_registered("varx"); returns a 1 in the 3rd script it will not pring the values ..!
Can anyone explain this? I'v tried all kinds of things.
I'm not using cookies and have register globals turned on.
If i were to put the bit of code above in a script with an <a> tag to the 3rd script and try to view the values of the varxs it WILL work.
I suspect there is a problem with my using a function with sessions.
thanks