Quote:
Originally posted by trevor
nope, still not working,
thanks though
do I have to do:
PHP Code:
session_register("username");
session_register("password");
on every page?
|
No. Just for giggles, try registering after setting the variables for the first time.
$password=$_GET['password'];
$username=$_GET['username'];
session_register("username");
session_register("password");
Also, session_register is supposed to return a boolean. I'd check that in an if to make sure it is working. If register_globals is off, session_register won't work according to info at php.net. The way your first example is written, it will still work even if session_register fails.