Flowaxy Session is a lightweight PHP library for secure and easy session management.
Perfect for Flowaxy CMS, landing pages, web apps, and custom PHP projects.
✅ Simple session initialization
✅ Namespaced keys to prevent conflicts (s_key
)
✅ Clean API: start()
, set()
, get()
, remove()
, destroy()
✅ Auto-integration with flowaxy/cookie
✅ Compatible with PHP 8.2+
Install via Composer:
composer require flowaxy/session
Dependency: To enable full functionality (like cookie cleanup), install flowaxy/cookie:
composer require flowaxy/cookie
use Flowaxy\Session;
// Start session
Session::start();
// Set value
Session::set('user_id', 42);
// Get value
$userId = Session::get('user_id');
// Remove value
Session::remove('user_id');
// Destroy session
Session::destroy();
💡
destroy()
also clears the cookie viaFlowaxy\Cookie
if the library is available.
- PHP 8.2+
- Composer
- Optional:
flowaxy/cookie
- GitHub: github.com/flowaxy/session
- Package: packagist.org/packages/flowaxy/session
- Cookie Manager: github.com/flowaxy/cookie
- Flowaxy CMS: flowaxy.dev
v1.0.0 — Stable
🧰 Follows Semantic Versioning (SemVer)
Made with ❤️ for developers.