I have this login script. You type in a username, and it logs you in as that name. It does the login procedure, then stores what you typed into user into a var called $validuser. It then registeres valid user.
The code goes like this:
$validuser = $username;
session_register("validuser");
You type in your username into index.php. It then processes the info in login.php, and then in 3 seconds, goes back. You appear logged in, however, it has lost your username!
Then you can logout if you wish, that just unregisters $validuser.
I don't know why it is loosing $validuser.
If you want to see how it works, go to http://24.81.229.246/~mark/
I want to know why it is losing $validuser