vespula / session
A simplified Session library without complications. SQL Save Handler is included.
2.0.2
2026-10-27 19:36 UTC
Requires
- php: >=8.3
Requires (Dev)
- phpmd/phpmd: @stable
- rector/rector: ^2.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Vespula Session is a lightweight PHP session management library that provides a simple interface for working with PHP sessions.
It builds on PHP’s native session functionality and adds a few useful features:
- A namespaced session container to keep library data separate from other application session data.
- Named segments for organizing session values.
- Configurable idle timeouts.
- Flash messages for storing one-time messages.
- CSRF token generation and validation.
- Support for custom PHP session save handlers.
The library deliberately avoids trying to replace PHP’s session functionality. It provides a small layer on top of it, with a focus on simplicity and predictable behaviour.
Documentation is at https://vespula.bitbucket.io/session/index.html