PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 764 All time: 4,423 This week: 455Up
Version License PHP version Categories
apc_handler 1.0GNU General Publi...4.0PHP 5, Databases, User Management


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: 48
All time rank: 7525 in Serbia Serbia
Week rank: 286 Up3 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  
This week:0
All time:4,423
This week:455Up