PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 764 All time: 4,425 This week: 455Up
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: 49
All time rank: 7525 in Serbia Serbia
Week rank: 215 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:764
This week:0
All time:4,425
This week:455Up