PHP Classes

Session Handler Class: Manage sessions stored 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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 1,800 All time: 2,177 This week: 200Up
Version License PHP version Categories
session_handler 1.0BSD License3.0PHP 5, Databases, User Management


This class can be used to manage sessions stored in a MySQL database.

It can store the identifier of a given authenticated user and a session data string in a MySQL database table.

The class can also retrieve the user identifier and the session data string into session variables.

It can also delete specific user sessions from the MySQL database table or just the sessions that have expired.

A separate table keeps track of the time when it is necessary to do session maintenance that is handled by a configurable PHP script.

Picture of Christian Zinke
Name: Christian Zinke <contact>
Classes: 3 packages by
Country: Germany Germany
Age: ???
All time rank: 106567 in Germany Germany
Week rank: 654 Up20 in Germany Germany Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file cron.php Example Cron Example
Accessible without login Plain text file index.php Example Example-index
Plain text file session_handle.php Class Session_Handler

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,177
This week:200Up