To do this exercise,
- create a fork of this repo
- add code as explained below
- submit the link to this repo to the assignments email address
- give a subject of this repo's name and the version number
Complete the loginform.php
- add a text input field for 'username'
- add a password input field for 'password'
- send the form results to login.php
- send the data via post
Complete the login.php file
- follow the comments and create code to complete it. -PHP functions will likely include:
- mysqli_connect
- sha1
- mysqli_query
- json_encode
- strlen
- empty
- isset
- session_start
- session_destroy
Complete the logout.php file
- follow the coments and create code to complete it