PHP Classes

Tiny Auth: Authenticate users with records stored in MySQL

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 530 All time: 5,642 This week: 113Up
Version License PHP version Categories
tiny-auth 1.0GNU Lesser Genera...5.4PHP 5, Databases, User Management


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: 32
All time rank: 31983 in Kazakhstan Kazakhstan
Week rank: 373 Up1 in Kazakhstan Kazakhstan Up

  • er_diag
  • example/er_diagram.png
  • screenshot1
  • screenshot2
  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  
This week:0
All time:5,642
This week:113Up