Login   Register  
PHP Classes
elePHPant
Icontem

Zebra_Session, a wrapper for PHP’s default session handling functions, using MySQL for storage

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

  Author  
Picture of Stefan Gabos
Name: Stefan Gabos <e-mail contact>
Packages: 11 Browse all classes by Stefan Gabos Browse all classes by
Country: Romania Romania - PHP jobs in Romania
Age: 33
All time rank: 321 in Romania Romania
Week rank: 41 Down3 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x


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

  Classes of Stefan Gabos  >  Zebra_Session, a wrapper for PHP’s default session handling functions, using MySQL for storage  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Zebra_Session, a wrapper for PHP’s default session handling functions, using MySQL for storage
Base name: phpsessions
Description: Session handler that stores session data in MySQL
Version: 1.0.8
PHP version: 4.4.9
License: GNU General Public License (GPL)
All time users: 3635 users
All time rank: 784
Week users: 8 users
Week rank: 269 Up
 
  Groups   Freshmeat project   Rate classes User ratings  
  Trackback   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


  Freshmeat project  
Zebra_Session, a wrapper for PHP’s default session handling functions, using MySQL for storage
Project record: phpsessionsmanagement
Popularity score: 91.21
Vitality score: 14.7

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (68.8%)
Not sure (50.0%)
Sufficient (68.8%)
-
-
Not sure (56.2%)
1094
Month:
Not yet rated by the users

  Trackback links  
Link Description
Proper Session Handling In PHP, sessions are pretty easy to work with since it just involves doing a few lines of code; initialize the session, define a session variable, then calling it back when you need it...

  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
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  /  Files folder image 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  /  Files folder image 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

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