PHP Classes

Login PHP Class: Authenticate users stored in a MySQL database

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   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


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: 246 Up11 in Italy Italy Up

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:912
This week:455Up