Leaf's core session functionality packaged as a serve-yourself module.
You can easily install Leaf using the Leaf CLI:
leaf install session
Or with Composer.
composer require leafs/session
session()->set('name', 'Leaf PHP');
session()->get('name');
Check the full documentation here.