Basic PHP code for setting up a session and database entry for users.