PHP Classes

Session Handler Class: Manage sessions stored in a MySQL database

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,802 All time: 2,178 This week: 455Up
Version License PHP version Categories
session_handler 1.0BSD License3.0PHP 5, Databases, User Management
Description 

Author

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

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,802
This week:0
All time:2,178
This week:455Up