PHP Classes

Professional Login System: Authenticate and manage user in sessions

Recommend this page to a friend!
  Info   View files Documentation   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,092 All time: 3,428 This week: 660Up
Version License PHP version Categories
profesional-login 1.0GNU General Publi...5.3PHP 5, User Management


This package can authenticate and manage user in sessions.

It can authenticate users and store authenticated user details in session variables.

A separate class can generate passwords for new users or users that need to reset their passwords.

Picture of Ricky Scotti
  Performance   Level  
Name: Ricky Scotti <contact>
Classes: 3 packages by
Country: Switzerland Switzerland
Age: 45
All time rank: 190221 in Switzerland Switzerland
Week rank: 328 Up5 in Switzerland Switzerland Up


1-How to install:

use the file createDbase.sql for create 2 table in your database: tbl_users tbl_ipblocked

After that OPEN /lib/class/class.mysql.php and edit:

private $sys_nomehostDB = "localhost"; //ip database
private $sys_nomeuserDB = "dbase_user"; //username database
private $sys_passwordDB = "psw_dbase"; //password database
private $sys_databaseName = "name_database"; //name database
private $sys_databasePort=null; //port database if not set use a null

For a good mysql connection.

2-Generate and create a new user for test:

Open file lock.php you can find an example for password "MyPassword". The long code that you can read is the code to insert in tbl_users.user_email.

The combination of: user_email, user_password are the correct login information where: tbl_users.user_email = user field (mail or text) tbl_users.user_password = the encoded password (it's a SHA-512 encode) (the example that you can find for password "MyPassword").

After that in every page of your application simple include this file on the top: /inc/init.php

The object: userActive is your user. (in the class there are detail of each method). The method: userActive->userIdentified() return: False (Not logged in) or 1(logged in)

  Files folder image Files  
File Role Description
Files folder imageinc (1 file)
Files folder imagelib (1 directory)
Plain text file createDbase.sql Data SQL creation table
Plain text file index.php Appl. Index file after login
Plain text file lock.php Appl. Login file
Plain text file logout.php Example Logout file
Plain text file README.txt Doc. documentation
Plain text file _GHOST.php Appl. Transit post prevent file

  Files folder image Files  /  inc  
File Role Description
  Plain text file init.php Conf. Init file

  Files folder image Files  /  lib  
File Role Description
Files folder imageclass (4 files)

  Files folder image Files  /  lib  /  class  
File Role Description
  Plain text file class.mysql.php Class Mysql Connection
  Plain text file class.password.php Class Password Generator
  Plain text file Class Post class
  Plain text file class.users.php Class Session user

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,428
This week:660Up