PHP Classes

The Login Class: Autenticate users with records in a MySQL database

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 3,777 This week: 1All time: 866 This week: 560Up
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: 84750 in India India
Week rank: 411 Up26 in India India Up

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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,777
This week:1
All time:866
This week:560Up
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:56%StarStarStar
Documentation:56%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3586