On this page

Introduction

This component provides a PSR-6 session persistence adapter for use with mezzio-session.

PSR-6 defines cache items and cache item pools. This package uses a cache item pool in which to store and retrieve sessions. PSR-6 was chosen over the simpler PSR-16 as it specifically provides functionality around expiry, which allows us to expire sessions.

Usage

Generally, you will only provide configuration for this service, including configuring a PSR-6 CacheItemPoolInterface service; mezzio-session will then consume it via its SessionMiddleware.