I'm trying this...just to test it.
<?php
session_start();
extract(mysql_fetch_assoc(mysql_query("SELECT password FROM users WHERE id = '$id'")));
$_SESSION['userid'] = $id;
$_SESSION['pwd'] = md5($passwd);
if($password == md5($passwd)) {
$valid_user = 1;
echo "Right.";
echo $_SESSION['userid']; // Returns "1" or whatever the ID might be
.......
if ($_GET[Goto] == "Login") {
session_start();
echo "<br>ID is still...";
echo $_SESSION['userid']; // Returns nothing :'(
}
Doesn't return on the second page. Eh? Is still new to PHP if you didn't notice >>