bjoern-buettner / session
A simple session handler for PHP 8.1 and newer, configurable via environment variables.
Installs: 179
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bjoern-buettner/session
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: 10.2.3
Suggests
- ext-memcached: For faster session handling using the Memcached backend
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