PHP Classes
elePHPant
Icontem

Distributed Session Manager: Manage sessions using distributed MySQL servers

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-08-01 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,678 This week: 1All time: 2,269 This week: 1,047Up
Version License Categories
phpdsm 1.0GNU General Publi...Databases, User Management
Description Author

This class can be used as a replacement to the default PHP session manager class to store and retrieve sessions in distributed MySQL servers.

The class retrieves a list of MySQL server hosts from a configuration file in the INI format.

A random host is picked from the list to connect when it is necessary execute MySQL queries to store, retrieve, update or delete session data.

The MySQL server host connection timeout is set to a configurable value, so the class can skip a busy server and try connecting the next host in the list.

The session data may be stored on multiple servers at once to provide greater redundancy.

Innovation Award
PHP Programming Innovation award nominee
August 2006
Number 7


Prize: One subscription to the PHP Magazine
By default, user access session data is stored in files. However, in a clustered server environment, file storage is not very convenient.

Even when files are available to all cluster servers via a networked file system, it may cause data corruption if the session files are not locked from concurrent accesses. Networked file system locks may cause excessive delays.

This class provides an alternative solution by distributing session data storage using a MySQL database. It avoids some of the inconveniences of the concurrent accesses to session data stored in a networked file system.

Manuel Lemos
Picture of Robin
Name: Robin <contact>
Classes: 3 packages by
Country: The Netherlands The Netherlands
Innovation award
Innovation award
Nominee: 3x

Screenshots  
  • sessions.png
  Files folder image Files  
File Role Description
Plain text file sessionmanager.php Class The Session Manager class
Accessible without login HTML file phpdsm.html Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,678
This week:1
All time:2,269
This week:1,047Up