JwtSession is a PHP session replacement. Instead of use FileSystem, just use JWT TOKEN. The implementation follow the SessionHandlerInterface.
Php JWT example.
A simple library to work with JSON Web Token and JSON Web Signature
PSR-7 and PSR-15 JWT Authentication Middleware
Sessions handler which stores session data in HMAC-signed and encrypted cookies
Platform-Agnostic Security Tokens