Login   Register  
PHP Classes
elePHPant
Icontem

Distributed Session Manager: Manage sessions using distributed MySQL servers

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Robin
Name: Robin <contact>
Classes: 3 packages by
Country: The Netherlands The Netherlands
Age: 31
All time rank: 99930 in The Netherlands The Netherlands
Week rank: 1102 Down30 in The Netherlands The Netherlands Equal
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Robin  >  Distributed Session Manager  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Distributed Session Manager
Base name: phpdsm
Description: Manage sessions using distributed MySQL servers
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1636 users
All time rank: 2202
Week users: 1 user
Week rank: 1432 Up
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes

  Files folder image Screenshots  
sessions.png
File Role Description
Accessible without login Image file sessions.png Screen Illustration


  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

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download Download all files: phpdsm.tar.gz phpdsm.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.