Whenever I make a session variable, it only works in the folder I declared them in... how do you make it so it works for the entire site?
session_start(); session_register("un"); $un=$info["un"];
Well, it was working in the folder I set it in. Now it's not working at all. It will work on the VERY first file I set the session in, but then it just doesn't work... I have Session Functions Enabled, can someone help?
well, im REALLY new to php. but you could try
session_register('$un');
it works for me like that.
also change the other un to $un
Sorry if im wrong, I would like to help if i could.
If you are using a version of PHP >= 4.1, you can use the $_SESSION global variable, instead of session_register for every variable.
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.session
Hopefully this helps ...
Could this be any help to me?
If you look for my topic session arrays on the forum. Alittle bit down from the top,.