This is a simple demonstrator to illustrate the use of session variables. It is not a full application and has no database connection. There is no validation of user input. A new user who provides the required registration information should be immediately logged in.
Reload this page if you need to clear the session
print_r($_SESSION) gives
Array ( )