flatphp / session
session component
v3.0.1
2022-01-30 13:14 UTC
Requires
- php: >=8.1
- flatphp/cache: ^3.0
This package is auto-updated.
Last update: 2024-12-29 05:16:08 UTC
README
This is a light session component;
Install
composer require "flatphp/session"
Useage
// Based on cache use Flatphp\Cache\Cache; Cache::init(array( 'store' => array( 'driver' => 'redis', 'host' => 'localhost', 'port' => 6379 ) )); Session::init(array( 'lifetime' => 1440, 'handler' => 'cache' )); Session::set('test', 1); echo Session::get('test'); Session::delete('test'); echo Session::getId();