PHP Classes

The Login Class: Autenticate users with records 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
StarStarStar 42%Total: 3,777 All time: 866 This week: 455Up
Version Licenses PHP version Categories
login_class 1.0Free For Educatio...3.0Databases, User Management
Description 

Author

This is a simple class can be used to authenticate users with records stored in a MySQL database table.

It looks up in a given MySQL table for the password of a given user, and checks if the password matches a given value entered by the user being authenticated.

If there is a record for the specified user and the password is correct, the class sets a session variable with the user name and returns the code 1. If the password is incorrect, it returns the code 2. If there is no user with the specified user name, it returns 0.

The class may also check encoded passwords stored after using the MD5 hash function.

Picture of abubakkar siddiq
Name: abubakkar siddiq <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 84850 in India India
Week rank: 178 Up21 in India India Up

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file Example.txt Doc. Example File For Class
Accessible without login Plain text file License.txt Lic. The GNU General Public License (GPL)
Plain text file login_class.php Class Class File

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,777
This week:0
All time:866
This week:455Up
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:56%StarStarStar
Documentation:56%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3642