MySessions: Handler that stores session data in a MySQL table

Recommend this page to a friend!
  Info   View files (4)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 521 All time: 5,626 This week: 368
Version License PHP version Categories
mysessions 1.0GNU General Publi...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: 39
All time rank: 245934 in Portugal Portugal
Week rank: 694 12 in Portugal Portugal

  Files  
File Role Description
documentation.txt Doc. Documentation file
sessions.sql Data MySQL table structure
usage_example.php Example Usage example
mysessions.class.php Class The main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:521
This week:0
All time:5,626
This week:368

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