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    
Last Updated Ratings Unique User Downloads Download Rankings
2007-03-03 (9 years ago) RSS 2.0 feedStarStarStar 44%Total: 3,766 All time: 832 This week: 1,159Down
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: 79844 in India India
Week rank: 1542 Down100 in India India Down

  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  
This week:0
All time:832
This week:1,159Down
 User Ratings  
 All time