5.0.0
This release improves the security of the library by preventing most session-related
CSRF attacks on unsafe HTTP methods (such as POST
, PUT
, etc.) by introducing a
SameSite=Lax
cookie policy when using the PSR7Sessions\Storageless\Http\SessionMiddleware
defaults.
The addition of SameSite=Lax
counts as a BC break, since cross-domain POST
requests will no
longer transmit the session cookie: if you rely on that, be sure to customise the
SessionMiddleware
constructor parameters with your own cookie blueprint.
In addition to these changes, following has been introduced:
- The minimum supported PHP version is now 7.2.0
- Static analysis was added to the build pipeline
- Test suite and mutation test suite were upgraded