Skip to content

Releases: Ghostff/Session

v3.1.0

Choose a tag to compare

@Ghostff Ghostff released this 19 Sep 15:42
  • Enabled auto-commit by default: Session changes are now persisted automatically on object destruction, reducing boilerplate in typical request/response flows. You can still call commit() explicitly whenever you want. To restore the previous manual-only behavior, set CONFIG_AUTO_COMMIT => false (globally or per-instance).
  • Fixed issue #23 : Adjusted the constructor’s $id handling to avoid deprecation notices on newer PHP versions, while keeping behavior intact. You can continue omitting the $id, passing null, or providing a custom ID string as before; no migration steps required.
  • Added Session::setConnection: Lets you inject your own connection for the selected driver before creating a Session instance. Supported: PDO for MySQL/SQLite, Memcached for Memcached, Redis for Redis. The method validates the connection type and throws if it doesn’t match the driver. This enables reusing existing pools/configuration, finer control over connection lifecycles, and easier integration in frameworks/containers.

Added support for SQLite

Choose a tag to compare

@Ghostff Ghostff released this 24 Jul 14:28
ddf6286
Update README.md

Add SQLite driver support tag

v2.1.0

Choose a tag to compare

@Ghostff Ghostff released this 02 Jun 02:07

Added support for PHP 8.1

PHP 7.4

Choose a tag to compare

@Ghostff Ghostff released this 14 Jan 02:45
v2.0.0

test autoload

Queue

Choose a tag to compare

@Ghostff Ghostff released this 15 Oct 00:33
Merge pull request #9 from Ghostff/version

Queue

v1.01.0

Choose a tag to compare

@Ghostff Ghostff released this 30 Jun 01:03
README #4

v1.0.0

Choose a tag to compare

@Ghostff Ghostff released this 24 Jun 01:51
json