PHP MySQLi Session Handler: Store sessions in a database using MySQLi

Recommend this page to a friend!
  Info   Example   View files (3)   Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 646 All time: 4,876 This week: 260
Version License PHP version Categories
dbsh 1.0.0BSD License5PHP 5, Databases, User Management
Description Author

This class is a session handler that store sessions in a database using the MySQLi.

It can register as a session handler with functions to open, close, read, write, destroy and garbage collect sessions.

The main class uses another class that stores and retrieves session records from a given MySQL database table using the MySQLi extension.


Assign and lookup sessions
Sessions class or equivalent

Picture of Mohammad Mostafa Shahreki
Name: Mohammad Mostafa ... <contact>
Classes: 6 packages by
Country: Iran Iran
Age: 37
All time rank: 9067 in Iran Iran
Week rank: 694 16 in Iran Iran

File Role Description
class.DB.php Class Database Wrapper Class
class.DBSessionHandler.php Class Database Session Handler Class
index.php Example Example Script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,876
This week:260
User Comments (1)
Excellent, the most necessary!
3 years ago (Sergey)

For more information send a message to info at phpclasses dot org.