View Single Post
Old 01-19-2003, 02:24 PM   #12 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
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.
technobard is offline   Reply With Quote