mysql_query($SQL); mysql_close($db_handle); Here, we use the SQL command INSERT INTO to add a new record to the database. After the user has been added to the database, we can then set the session variable: session_start(); $_SESSION[ 'login' ] = "1"; The session variable called login will be set to 1. This means that the user can then start using the site straight away. In fact, we redirect them to a different page on the site: eader ("Location: page1.php"); Our new user is now a member! In the final part of this User Authentication walkthrough, we'll take a look at some other things you'll need to consider.