PHP Classes
elePHPant
Icontem

Zebra_Session, a wrapper for PHP’s default session handling functions, using MySQL for storage: Session handler that stores session data in MySQL

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-01-11 (5 years ago) RSS 2.0 feedStarStarStar 56%Total: 3,837 This week: 1All time: 801 This week: 1,047Down
Version License PHP version Categories
phpsessions 1.0.8GNU General Publi...4.4.9Databases, User Management
Description Author

Zebra_Session is a PHP class that acts as a wrapper for PHP’s default session handling functions but instead of storing session data in flat files it stores them in a MySQL database, thus providing both better security and better performance.

The Zebra_Session class is also a solution for applications that are scaled across multiple web servers (using a load balancer or a round-robin DNS) and where the user’s session data needs to be available. Storing sessions in a database makes them available to all of the servers!

This class is was inspired by John Herren’s code from the Trick out your session handler article and Chris Shiflett’s code from his book Essential PHP Security, chapter 8, Shared Hosting, Pg. 78-80.

Zebra_Session‘s code is heavily commented and generates no warnings/errors/notices when PHP’s error reporting level is set to E_ALL.

Picture of Stefan Gabos
Name: Stefan Gabos <contact>
Classes: 11 packages by
Country: Romania Romania
Innovation award
Innovation award
Nominee: 1x

Details
See http://stefangabos.ro/php-libraries/zebra-session/
  Files folder image Files  
File Role Description
Files folder imageexamples (2 files)
Files folder imageinstall (3 files)
Accessible without login Plain text file changelog.txt Doc. Changelog
Accessible without login Plain text file documentation.txt Doc. Documentation
Accessible without login HTML file index.html Conf. Prevent directory listing
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file readme.txt Doc. Readme File
Plain text file Zebra_Session.php Class Class source

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example1.php Example Example script
  Accessible without login HTML file index.html Conf. Prevent directory listing

  Files folder image Files  /  install  
File Role Description
  Accessible without login HTML file index.html Conf. Prevent directory listing
  Accessible without login Plain text file install.txt Doc. Installation
  Accessible without login Plain text file tbl_session_data.sql Aux. SQL File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,837
This week:1
All time:801
This week:1,047Down
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:50%StarStarStar
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1516