Login   Register  
PHP Classes
elePHPant
Icontem

Tiny Auth: Authenticate users with records stored in MySQL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-10-06 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 496 All time: 5,334 This week: 1,541Up
Version License PHP version Categories  
tiny-auth 1.0GNU Lesser General Publ...5.4PHP 5, Databases, User Management
Description Author  

This class can authenticate users with records stored in MySQL.

It can connect to a MySQL database using the PDO extension and executes a SQL query to verify whether a given user and password are from a valid users and the password is correct.

If found, the class initializes a few session variables with the user account and role information.

The class can also check if the session variables are set to determine if the user is logged. In that case, the class can logout the user by clearing the session variables.

Picture of Andrey Gadyukov
Name: Andrey Gadyukov <contact>
Classes: 1 package by
Country: Kazakhstan Kazakhstan
Age: 23
All time rank: 29503 in Kazakhstan Kazakhstan
Week rank: 1754 Up4 in Kazakhstan Kazakhstan Down

Screenshots  
  • screenshot2
  • screenshot1
  • example/er_diagram.png
  • er_diag
  Files folder image Files  
File Role Description
Files folder imageexample (3 files)
Plain text file db.php Class Database abstract connection class
Plain text file TinyAuth.php Class TinyAuth class

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file auth.sql Data Example sql database dump
  Accessible without login Plain text file index.php Example Example script file
  Accessible without login Plain text file main.css Data Example stylesheets file

 Version Control Unique User Downloads Download Rankings  
 0%Total:496All time:5,334
 This week:0This week:1,541Up