I am haveing a problem with sessions. I am trying to use them to log my username and password along with a few other items used for the website when you log in. It sets the information in the session just fine but I can't seem to call on the information to use it. What can I do?
$username=$HTTP_POST_VARS["username"];
$password=$HTTP_POST_VARS["password"];
if (!$PHPSESSID) {
if ((!$username) || (!$password)) {
header("Location: http://65.26.138.33/index.php");
exit;
}
} else {
session_start();
session_register("$username");
session_register("$password");
session_register("yes");
}
I can't get my script to get past this point it just continues to send me to my home page any help would be greatly appreciated.