Simple PHP Login System (PHP Scripts)

About

This simple PHP login system is formed to be easily implemented into any new or current existing website to allow webmasters/owners to give their users an area to login, be able to restrict their pages from anonymous visitors, or display custom content based on the user. Please take note that this system does not include any other systems like user registration, user management, or content management, this only establishes a connection/session to your website with login credentials, however still allows access to query your database, and pull any information you choose to store in there, which could over all be used to further expand on this system.

To make it easy for developers and non-developers alike, I went ahead and created a setup file included in the package which will allow you to easily set up the system with your MySQL database.

Requirements

  • MySQL database (5.x)
  • PHP (5.4)

Features

  • Simple and secure PHP OOP script
  • MySQL database-driven, to hold user information
  • Easy to implement with any new or current websites
  • Secure from common SQL Injection, and XSS attacks
  • Usage of the whirlpool hashing algorithm (512-bit digest) to secure user passwords safely in your database, however you may change the algorithm to whichever you use or to not use one at all

Includes

  • index.php (demo/example of login)
  • setup.php (for setting up your MySQL database)
  • global.php (the PHP class that makes the system)
  • config.php (holds the MySQL database connection information)
  • readme.html (documentation on usage)
  • bootstrap.css (styling from the free Twitter Bootstrap package)

Download Simple PHP Login System (PHP Scripts)

Leave a Reply

Your email address will not be published. Required fields are marked *