PHP Classes

Tiny Auth: Authenticate users with records stored in MySQL

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 514 All time: 5,374 This week: 1,093Up
Version License PHP version Categories  
tiny-auth 1.0GNU Lesser Genera...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: 24
All time rank: 30053 in Kazakhstan Kazakhstan
Week rank: 1542 Up3 in Kazakhstan Kazakhstan Equal

  • 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:514All time:5,374
 This week:0This week:1,093Up