Skip to content

kwignes/secure_session_login

Repository files navigation

Secure Session Login

A secure login/logout form with sessions to protect from unauthorized access.

Licensed under MIT

PHP and MySQL was used to create the form and administration interface. Secure Login

Setup

  1. Clone files to localhost.
  2. Create a new database in phpMyAdmin.
  3. Add a new global user granted all privileges.
  4. Connect to the database by creating a dbinfo.php file and add in your information.

const DB_HOST = "localhost"; const DB_USER = "(user)";
const DB_PASS = "(generated password)";
const DB_NAME = "(database name)";

Form - index.php
Dashboard Control Panel - page01.php

User Profile - profile.php
Add Student - add_user.php
Manage Database - table_students.php

Database Table

Add User - add_user_admin.php
Update User - update_page.php
Delete User - delete_page.php

Security

Validations - session-authorize.php
Terminate session and prevent brute force - security-guard.php

Process pages - Confirm operation

process_page_adduser.php
process_page_adduser_admin.php
process_page_delete.php
process_page_update.php

Styles

style.css
Font Awesome CDN
Eric Meyer Reset

About

PHP and MySQL Database with Secure Login Form

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published