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 Schuil
Name: Robin Schuil <e-mail contact>
Packages: 3 Browse all classes by Robin Schuil Browse all classes by
Country: The Netherlands The Netherlands - PHP jobs in The Netherlands
Age: 31
All time rank: 99130 in The Netherlands The Netherlands
Week rank: 946 Up27 in The Netherlands The Netherlands Up
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 Schuil  >  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: 1628 users
All time rank: 2193
Week users: 1 user
Week rank: 1808 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  
Illustration
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  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
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.