Hi, I am wondering if someone can help with this problem. I have set a Session variable (which works I can echo it back). I am now trying to access this Session variable from an include within a function but I am unable. Is there any way to do this?
Thanks.
it is a scope problem, you have to put : global $sessionVariableName; into your function for it to get to the session variables.
Have you remembered to refer to the session variable as global within your function?
ie.
function test() { Global $Session_variable;
echo $Session_variable; }