PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 3,846 All time: 831 This week: 425Up
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: 12 packages by
Country: Romania Romania
Age: 44
All time rank: 312 in Romania Romania
Week rank: 312 Down3 in Romania Romania Down
Innovation award
Innovation award
Nominee: 2x

Winner: 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,846
This week:0
All time:831
This week:425Up
User Ratings User Comments (1)
 All time
Utility:70%StarStarStarStar
Consistency:65%StarStarStarStar
Documentation:50%StarStarStar
Examples:65%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2247