This example could easily be extended to cover database storage using your favorite PHP supported database engine.
The following example provides file based session storage similar to the PHP sessions default save handler files. This example could easily be extended to cover database storage using your favorite PHP supported database engine.