A simple session handler for PHP 8.1 and newer, configurable via environment variables.

Maintainers

Package info

github.com/bjoern-buettner/session

pkg:composer/bjoern-buettner/session

Statistics

Installs: 183

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.4 2023-07-25 07:49 UTC

This package is auto-updated.

Last update: 2026-02-25 13:07:40 UTC


README

A memcached and file session handler taking care of IP-Locking as well. Simply call the Factory and have it handle all the checks.

Configuration via ENV

  • SESSION_DURATION defaults to 7200 and is the session duration in seconds
  • ENABLE_MEMCACHED must be set to true if memcached should be supported
  • SESSION_PATH must be set if the sessions should be stored outside the system temp directory