comphp/session-mysqldb

Session Driver for CommonPHP that reads/stores session data in a MySQL Database

Maintainers

Package info

github.com/commonphp/session-mysqldb

pkg:composer/comphp/session-mysqldb

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-05-17 04:45 UTC

This package is auto-updated.

Last update: 2026-05-20 18:01:12 UTC


README

Session driver for CommonPHP that reads and stores session data in MySQL.

Requirements

  • PHP ^8.5
  • comphp/session:^0.3
  • A MySQL extension or connection library supported by the implementation

Installation

Once this package is available through your Composer repositories, install it with:

composer require comphp/session-mysqldb

Usage

<?php

// TODO: Write usage

Driver Notes

This driver is intended for applications that want MySQL-backed session storage without requiring the full CommonPHP Database abstraction.

Use comphp/session-comphp-database instead when session storage should go through a CommonPHP Database connection.

Error Handling

Connection, read, write, destroy, garbage collection, and configuration failures should throw CommonPHP session driver exceptions instead of returning ambiguous false values.

Documentation

License

MIT. See LICENSE.md.