I have defined several functions in an external file that I include in my php scripts. The problem is that I can not get session variables in this file. Can someone tell me can I do to get session variables in this external file?
Thank's
Sonia
sure you can... if you included some function just be sure to tell your function that variables you want to access are global.
echo "my global variable x is $x";
function displayX() { global $x; echo "inside function is $x"; }
please give a detailed description to ur problem i will see it solved bye....syam
That solved my problem. Thank you very much.
Sónia