I made a change and it still doesn't work...
page1.php:
<?php
$uname = $username;
session_start();
session_register("uname");
print("<a href='page2.php'>Page 2</a>");
?>
page2.php:
<?php
session_start();
if(!$_SESSION["uname"]) {
print("You are not logged in.");
} else {
print("You are logged in.");
session_register("uname");
}
?>
It says I am not logged in, what am i doing wrong !?!? Any help is appreciated!