Login   Register  
PHP Classes
elePHPant
Icontem

APC_handler: Store session data in MySQL and in memory with APC

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-11-20 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 705 This week: 1All time: 4,261 This week: 1,453Up
Version License PHP version Categories  
apc_handler 1.0GNU General Public Lice...4.0PHP 5, Databases, User Management
Description Author  

This class can store session data in MySQL and in shared memory with APC.

It can register the class functions to handle the current user session.

The session values are stored and retrieved primarily in shared memory using APC as well in a MySQL database table to make them persist even if APC cache entries are not set for the current session.

Innovation Award  
PHP Programming Innovation award nominee
December 2011
Number 3


Prize: One downloadable e-book of choice by O'Reilly
Databases are often used by Web applications to store session data persistently.

PHP applications often use MySQL databases to store session data, but relational databases may become too slow to store and retrieve session data of many simultaneous users accessing a site.

This class provides a solution that uses MySQL to store session data, but it also keeps a copy of the data accessible in shared memory using APC for faster access.

Manuel Lemos
Picture of Eper Kalman
Name: Eper Kalman <contact>
Classes: 10 packages by
Country: Serbia Serbia
Age: 39
All time rank: 7725 in Serbia Serbia
Week rank: 315 Up2 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file APC_handler.class.php Class the main class
Accessible without login HTML file APC_handler.html Doc. short documentation
Accessible without login Plain text file APC_test.php Example example script
Accessible without login Plain text file temp.sql Data base dump

 Version Control Unique User Downloads Download Rankings  
 0%Total:705All time:4,261
 This week:1This week:1,453Up