naf / session
NAF Session Plugin for storing data across requests.
Requires
- php: >=8.3
- naf/framework: ^0.2
Requires (Dev)
- phpunit/php-code-coverage: ^12.1
- phpunit/phpunit: ^12.1
Suggests
- naf/database: Install to use the database-backed session storage handler.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-13 20:49:49 UTC
README
naf/session
Simple session management for NAF, with flash message support built-in.
This plugin adds a lightweight session layer to your NAF app, starts sessions safely in HTTP requests, and exposes helpers so you can store data (including flash messages) without worrying about headers or manual initialization.
🧩 Part of the official NAF plugin collection. Install it when you need session persistence, and nothing else.
Documentation
Everything about this package — what it does, how it is configured and what it needs — lives in the NAF documentation. Not sure which packages you need? Start here.
Install
composer require naf/session
License
MIT. Part of NAF.
