A login App with SESSIONS, Password hash, and Password recovery made with PHP 7, MySQL, phpMyAdmin, and Bootstrap.
How to use it?
-
Open XAMPP dashboard.
-
Click phpMyAdmin on the menu.
-
Create a new database "phplogin".
-
Create table "users" with 4 fields*:
Id - mediumint, Primary Key, AUTO_INCREMENT
Name - varchar
Email - varchar
Password - varchar(128)
*See screenshoot name table-users-Capture.jpg
- Download or clone this repo.
- Put "PHP-login" folder inside your "xampp" folder.
- Open your browser and type "localhost:8080/PHPLogin"
- Enter the account info and press "Create my account" button.
- Check if the info. is correct on the database and if the password is a hash.
- Go back to your browser and click "Login"
- Enter the email and password you use when created your account and click login.
- If everything is ok, you are logedin and a SESSION for 1 minute is created.