Hi.
I have been coding in php for a few years now but always on a server where the Global Variables has been set to ON. I am now working on a server with the globals set to OFF and having trouble with some of my login scripts.
My initial script works just fine and lets the user login, at this point I set the session variable:
session_register("foo") or die("session started") ;
Now on all my scripts that check for that session, they do not work. I have this:
session_start();
if (!$foo) {
echo "
<html>
<head>
<HEAD>
<META HTTP-EQUIV=REFRESH CONTENT=\"0;URL=login.php\">
</HEAD>
";
exit;
} else {
CONTINUE TO DISPLAY PAGE
}
Like I said, with globals set to ON there are no problems with above code, but with them set to OFF, it does not work.
Thanks for any help.