OK, if I've got this all figured out right, then you have to say "session_start();" to...well...start the session. With "session_register("variable1", "variable2")" you register the global variables in your current session.
I used this in my pratice programs. I'm still new at all of this, so if I don't explain it completely right, don't hate me! 🙂
session_start();
session_register("usr", "pwd");
//some code I took out
print("<b>Please Login:</b><br><br>
Username: <input type=text name=usr><br>
Password: <input type=password name=pwd><br><br>
<input type=submit name=submit value=Login>
//some more code I took out
With "<input type=text name=usr>" you create the input box and call whatever the user types in "usr"(the name of the input"). In other words, if you say
print("$usr");
and the user entered John, then "John" would be displayed on the screen.
The same happens with the password you entered. As long as the session is on, your user should be logged in.
I hope I explained this good enough. If not, feel free to send abusing emails to me...or just wait until someone comes and gives you a better explaination.
I really do hope that I helped you.
🙂