PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-11-20 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 737 All time: 4,323 This week: 913Up
Version License PHP version Categories
apc_handler 1.0GNU General Publi...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: 40
All time rank: 7505 in Serbia Serbia
Week rank: 525 Up5 in Serbia Serbia Equal
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:737
This week:0
All time:4,323
This week:913Up