Download the PHP package kooser/session without Composer
On this page you can find all versions of the php package kooser/session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kooser/session
More information about kooser/session
Files in kooser/session
Download kooser/session
More information about kooser/session
Files in kooser/session
Vendor kooser
Package session
Short Description Securely manage and preserve session data.
License MIT
Homepage https://github.com/session-lock
Package session
Short Description Securely manage and preserve session data.
License MIT
Homepage https://github.com/session-lock
Please rate this library. Is it a good library?
Informations about the package session
Session Lock
Secure, framework-agnostic PHP session management.
What's new in this modernization
- PHP 8.2+ and modern dependencies
- Fixed fingerprint comparison bug
- Fixed methods that declared
boolbut returned nothing - CLI-compatible session status for automated tests
- Dot-notation session keys
pull,only,replace,increment, anddecrement- TTL session values
- Laravel-style flash lifecycle:
flash,now,keep,reflash - CSRF token generation/validation
- Automatic session ID rotation
- Session metadata
- Safer defaults: strict mode, HttpOnly, SameSite=Lax
- User-agent fingerprinting by default; IP binding is opt-in to reduce false positives
- Dependency-injectable fingerprint provider
- Lazy session start option
- Framework-agnostic middleware
- In-memory, cache, and null session handlers
- Backward-compatible aliases:
stopSession,regenerateSessionID, and historicalregerate - PHPUnit + GitHub Actions matrix
Install
Basic usage
TTL values
Flash data
The value survives the current request and one subsequent session start. Use keep() or reflash() to preserve it for another request.
CSRF
Fingerprinting
IP binding is deliberately opt-in. Mobile networks, proxies, VPNs, and IPv6 privacy addresses can change a legitimate user's IP during a session.
Automatic ID rotation
Always regenerate after login, privilege elevation, or other authentication boundary:
Cache handler
Security notes
- Fingerprinting is a defense-in-depth signal, not identity proof.
- Use TLS in production.
- Regenerate the session ID after authentication.
- Keep
session.use_strict_modeenabled. - Prefer
Secure,HttpOnly, and an appropriate SameSite cookie policy. - Do not store secrets in a client-readable cookie session handler unless the contents are authenticated and encrypted.
Compatibility
PHP 8.2, 8.3, 8.4.
License
MIT.
All versions of session with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
cakephp/database Version ^4.1
defuse/php-encryption Version ^2.2
symfony/cache Version ^5.1
symfony/filesystem Version ^5.1
symfony/options-resolver Version ^5.1
symfony/polyfill-apcu Version ^1.18
symfony/polyfill-ctype Version ^1.18
cakephp/database Version ^4.1
defuse/php-encryption Version ^2.2
symfony/cache Version ^5.1
symfony/filesystem Version ^5.1
symfony/options-resolver Version ^5.1
symfony/polyfill-apcu Version ^1.18
symfony/polyfill-ctype Version ^1.18
The package kooser/session contains the following files
Loading the files please wait ...