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. |