PHP Classes

Login PHP Class: Authenticate users stored in a MySQL database

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 3,640 All time: 912 This week: 455Up
Version License PHP version Categories
php-login 1.0BSD License5.0PHP 5, Databases, User Management
Description 

Author

This class can be used to authenticate users stored in a MySQL database.

It can verify whether a given user and password are valid. The password may be hashed with MD5 or SHA1 before verification.

The class initialize session variables with values with the user records if he is successfully authenticated.

Picture of Antonio Ciccia
Name: Antonio Ciccia <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 34
All time rank: 63422 in Italy Italy
Week rank: 200 Up9 in Italy Italy Up

  Files folder image Files (3)  
File Role Description
Plain text file class_login.php Class Login PHP Class Source
Plain text file create_database_users_query.sql Data The database used in the example
Plain text file login_example.php Example Example Script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,640
This week:0
All time:912
This week:455Up