Login   Register  
PHP Classes

MySessions: Handler that stores session data in a MySQL table

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  
2008-10-16 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 507 This week: 1All time: 5,199 This week: 1,459Up
Version License PHP version Categories  
mysessions 1.0GNU General Public Lice...5.0PHP 5, Databases, User Management
Description Author  
This class is a session handler that can store and retrieve session data from a MySQL database table.

It registers the class as a PHP session handler so all operations to access to session data invoke the class functions.

The class creates a new record on a given MySQL table when the session is start. Subsequent accesses to the same session data make the class retrieve, update or delete the respective table record.

The class can handle sessions with or without using cookies. The session name and lifetime may be changed.

If necessary the class can also create the MySQL database table to create to store the session data.
Picture of João Romão
Name: João Romão <contact>
Classes: 2 packages by
Country: Portugal Portugal
Age: 33
All time rank: 229633 in Portugal Portugal
Week rank: 1125 Up21 in Portugal Portugal Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file documentation.txt Doc. Documentation file
Accessible without login Plain text file sessions.sql Data MySQL table structure
Accessible without login Plain text file usage_example.php Example Usage example
Accessible without login Plain text file mysessions.class.php Class The main class

 Version Control Unique User Downloads Download Rankings  
 0%Total:507All time:5,199
 This week:1This week:1,459Up