Login   Register  
PHP Classes
elePHPant
Icontem

DB Sessions: Manage sessions storing in a database with PEAR DB

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-06-10 (10 years ago) RSS 2.0 feedStarStarStar 51%Total: 2,176 All time: 1,679 This week: 1,438Up
Version License Categories  
dbsessions 1.0Free for non-commercial...Databases, User Management
Description Author  

This package is meant to act a session manager handler using as container a database accessed using PEAR::DB package rather than using the default container which is based on files.

This can be useful for instance to store user session data of sites served using load balanced array of Web servers.

Simply include the class file, create a new instance of the class passing a PEAR::DB object.

You can now use PHP sessions as usual but the session data will be stored in your database.

Notice that there are some known problems using this method with one build of PHP 4.2.2, due to what seems to be a bug in the session_set_save_handler function. If you are using this PHP version your are recommended to upgrade.

Picture of justin fielding
Name: justin fielding <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Age: 33
All time rank: 126356 in United Kingdom United Kingdom
Week rank: 1730 Down65 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example of invoking sessions
Plain text file sessionclass.php Class Class source
Accessible without login Plain text file sessions.sql Data SQL to create your sessions table in mySQL

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,176All time:1,679
 This week:0This week:1,438Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:1520