NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #5566 most downloaded on Packagist
Session module
Latest stable
4.20.0
Last release 3 months ago
18 Aug 2026
Release timing varies
gaps range from 8 days to 11 months
Nearly every release is documented
notes for 55 of 55 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
57 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Included commits: https://github.com/spryker/session/compare/4.19.4...4.20.0
Included commits: https://github.com/spryker/session/compare/4.19.4...4.20.0
SessionClient to degrade gracefully when no session container is registered — all methods now return neutral values (false, '', [], null) instead of failing, enabling applications such as the Storefront API, console commands, and queue workers to use SessionClient without bootstrapping a session.SessionClientInterface::start() specification to document that it returns false when no session container is present.Deprecated SessionConstants::YVES_SESSION_PERSISTENT_CONNECTION and SessionConstants::ZED_SESSION_PERSISTENT_CONNECTION .
Included commits: https://github.com/spryker/session/compare/4.19.3...4.19.4
SessionConstants::YVES_SESSION_PERSISTENT_CONNECTION and SessionConstants::ZED_SESSION_PERSISTENT_CONNECTION .Your coding agent can read these notes before it upgrades. Set up the MCP server →
Included commits: https://github.com/spryker/session/compare/4.19.2...4.19.3
Included commits: https://github.com/spryker/session/compare/4.19.2...4.19.3
Included commits: https://github.com/spryker/session/compare/4.19.1...4.19.2
Included commits: https://github.com/spryker/session/compare/4.19.1...4.19.2
SessionHandlerMysql to avoid potential SQL injection.Included commits: https://github.com/spryker/session/compare/4.19.0...4.19.1
Included commits: https://github.com/spryker/session/compare/4.19.0...4.19.1
Included commits: https://github.com/spryker/session/compare/4.18.0...4.19.0
Included commits: https://github.com/spryker/session/compare/4.18.0...4.19.0
Included commits: https://github.com/spryker/session/compare/4.17.1...4.18.0
Included commits: https://github.com/spryker/session/compare/4.17.1...4.18.0
SessionHandlerRedisLocking to support predis/predis of version 2.3.0 and higher.spryker/redis of version 2.7.2 and higher.Included commits: https://github.com/spryker/session/compare/4.17.0...4.17.1
Included commits: https://github.com/spryker/session/compare/4.17.0...4.17.1
Included commits: https://github.com/spryker/session/compare/4.16.0...4.17.0
Included commits: https://github.com/spryker/session/compare/4.16.0...4.17.0
Yves\SaveSessionEventDispatcherPlugin to fix issue with unexpected session lock.Included commits: https://github.com/spryker/session/compare/4.15.1...4.16.0
Included commits: https://github.com/spryker/session/compare/4.15.1...4.16.0
Included commits: https://github.com/spryker/session/compare/4.15.0...4.15.1
Included commits: https://github.com/spryker/session/compare/4.15.0...4.15.1
SessionClient::isStarted() to not fail if the session container is empty by returning false instead.Included commits: https://github.com/spryker/session/compare/4.14.0...4.15.0
Included commits: https://github.com/spryker/session/compare/4.14.0...4.15.0
SessionTrackingIdMessageAttributeProviderPlugin to expand MessageAttributes transfer with sessionTrackingId data.SessionFacadeInterface::expandMessageAttributesWithSessionTrackingId().MessageAttributes transfer.MessageBrokerExtension module to dependencies.Included commits: https://github.com/spryker/session/compare/4.13.0...4.14.0
Included commits: https://github.com/spryker/session/compare/4.13.0...4.14.0
Spryker\Glue\Session\Storage\MemorySessionStorage to be compatible with symfony/http-foundation:^5.0.0 || ^6.0.0.Spryker\Client\Session\SessionClientInterface so it no longer extends Symfony SessionInterface.Spryker\Yves\Session\Plugin\EventDispatcher\SessionEventDispatcherPlugin, Spryker\Yves\Session\Plugin\ServiceProvider\SessionServiceProvider, Spryker\Zed\Session\Communication\EventListener\SaveSessionListener, Spryker\Zed\Session\Communication\Plugin\EventDispatcher\SessionEventDispatcherPlugin, Spryker\Zed\Session\Communication\Plugin\ServiceProvider\SessionServiceProvider for compatibility with Symfony 6.Adjusted SessionHandlerCouchbase::open() so it has return type to avoid deprecations in PHP 8.1.
Included commits: https://github.com/spryker/session/compare/4.12.0...4.13.0
SessionHandlerCouchbase::open() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerCouchbase::close() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerCouchbase::read() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerCouchbase::write() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerCouchbase::destroy() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerCouchbase::gc() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::open() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::close() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::read() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::write() so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::destroy()so it has return type to avoid deprecations in PHP 8.1.SessionHandlerMysql::gc() so it has return type to avoid deprecations in PHP 8.1.Included commits: https://github.com/spryker/session/compare/4.11.0...4.12.0
Included commits: https://github.com/spryker/session/compare/4.11.0...4.12.0
SessionEventDispatcherPlugin by moving set session cookie to the KernelEvents::Response event.SessionEventDispatcherPlugin::EVENT_PRIORITY_KERNEL_RESPONSE.Included commits: https://github.com/spryker/session/compare/4.10.0...4.11.0
Included commits: https://github.com/spryker/session/compare/4.10.0...4.11.0
SessionHandlerMysql::read() to use global const APPLICATION_CODE_BUCKET instead of global const APPLICATION_STORE.SessionHandlerMysql::write() to use global const APPLICATION_CODE_BUCKET instead of global const APPLICATION_STORE.Included commits: https://github.com/spryker/session/compare/4.9.2...4.10.0
Included commits: https://github.com/spryker/session/compare/4.9.2...4.10.0
MockArraySessionApplicationPlugin class.SessionCommunicationFactory::createMockArraySessionStorage() method.Included commits: https://github.com/spryker/session/compare/4.9.1...4.9.2
Included commits: https://github.com/spryker/session/compare/4.9.1...4.9.2
Session::save() to the KernelEvents::Terminate event.Changed deprecation recommendations, instead of SessionRedisConstants::YVES_SESSION_REDIS_PROTOCOL now it is recommended to use SessionRedisConstants:…
Included commits: https://github.com/spryker/session/compare/4.9.0...4.9.1
SessionRedisConstants::YVES_SESSION_REDIS_PROTOCOL now it is recommended to use SessionRedisConstants::YVES_SESSION_REDIS_SCHEME in SessionConstants.Included commits: https://github.com/spryker/session/compare/4.8.2...4.9.0
Included commits: https://github.com/spryker/session/compare/4.8.2...4.9.0
SessionHelper for Zed.SessionEventDispatcherPlugin::extend() so that now it doesn't checks existing of previous session from request.Included commits: https://github.com/spryker/session/compare/4.8.1...4.8.2
Included commits: https://github.com/spryker/session/compare/4.8.1...4.8.2
SessionHandlerMysql::destroy() to quote the key column in a raw SQL query.Included commits: https://github.com/spryker/session/compare/4.8.0...4.8.1
Included commits: https://github.com/spryker/session/compare/4.8.0...4.8.1
SessionEventDispatcherPlugin so that it does not set the session cookie if it is already set.Added new SaveSessionListener, the previously used one from Symfony got deprecated.
Included commits: https://github.com/spryker/session/compare/4.7.3...4.8.0
symfony/http-kernel.SaveSessionListener, the previously used one from Symfony got deprecated.Deprecated Spryker\Shared\Session\SessionConstants::SESSION_IS_TEST.
Included commits: https://github.com/spryker/session/compare/4.7.2...4.7.3
Spryker\Shared\Session\SessionConstants::SESSION_IS_TEST.Included commits: https://github.com/spryker/session/compare/4.7.1...4.7.2
Included commits: https://github.com/spryker/session/compare/4.7.1...4.7.2
spryker/silex to require-dev.Included commits: https://github.com/spryker/session/compare/4.7.0...4.7.1
Included commits: https://github.com/spryker/session/compare/4.7.0...4.7.1
ContainerInterface array access usage to ContainerInterface::set() method usage.Included commits: https://github.com/spryker/session/compare/4.6.0...4.7.0
Included commits: https://github.com/spryker/session/compare/4.6.0...4.7.0
SESSION:YVES_SESSION_COOKIE_SAMESITE and SESSION:ZED_SESSION_COOKIE_SAMESITE environment configs.Spryker\Yves\Session\SessionConfig::getSessionStorageOptions() to support the new cookie_samesite session option using the new environment config.Spryker\Zed\Session\SessionConfig::getSessionStorageOptions() to support the new cookie_samesite session option using the new environment config.Spryker\Yves\Session\Plugin\EventDispatcher\SessionEventDispatcherPlugin so now it passes a new samesite option into a Cookie creation.Spryker\Zed\Session\Plugin\EventDispatcher\SessionEventDispatcherPlugin so now it passes a new samesite option into a Cookie creation.Included commits: https://github.com/spryker/session/compare/4.5.1...4.6.0
Included commits: https://github.com/spryker/session/compare/4.5.1...4.6.0
Spryker\Yves\Session\Plugin\HealthCheck\SessionHealthCheckPlugin to check session service availability for Yves application.SessionFacadeInterface::executeSessionHealthCheck() to check session service availability for Zed application.Spryker\Zed\Session\Communication\Plugin\HealthCheck\SessionHealthCheckPlugin to check session service availability for Zed application.Fixed deprecations messages from Cookie usage.
Included commits: https://github.com/spryker/session/compare/4.5.0...4.5.1
SessionHelper for easier testing.SessionHelperTrait for easier access to the SessionHelper in tests.Deprecated Spryker\Zed\Session\Communication\Plugin\ServiceProvider\SessionServiceProdiver.
Included commits: https://github.com/spryker/session/compare/4.4.0...4.5.0
Spryker\Zed\Session\Communication\Plugin\Application\SessionApplicationPlugin that registers session service and sets it to the session client.Spryker\Zed\Session\Communication\Plugin\EventDispatcher\SessionEventDispatcherPlugin.SaveSessionEventDispatcherPlugin.Spryker\Yves\Session\Plugin\Application\SessionApplicationPlugin that registers session service and sets it to the session client.Spryker\Yves\Session\Plugin\EventDispatcher\SessionEventDispatcherPlugin.Spryker\Yves\Session\Plugin\ServiceProvider\SessionClientServiceProvider that set session to the session client.Spryker\Zed\Session\Communication\Plugin\ServiceProvider\SessionServiceProdiver.Spryker\Yves\Session\Plugin\ServiceProvider\SessionServiceProdiver.Included commits: https://github.com/spryker/session/compare/4.3.0...4.4.0
Included commits: https://github.com/spryker/session/compare/4.3.0...4.4.0
Spryker\Shared\Config\Environment.Deprecated Spryker\Shared\Session\Business\Handler\SessionHandlerRedis, Spryker\Shared\Session\Business\Handler\SessionHandlerRedisLocking and Spryker…
Included commits: https://github.com/spryker/session/compare/4.2.0...4.3.0
Spryker\Shared\Session\Business\Handler\SessionHandlerRedis, Spryker\Shared\Session\Business\Handler\SessionHandlerRedisLocking and Spryker\Shared\Session\Business\Handler\SessionHandlerFile session handler classes and related configSpryker\Shared\Session\Model\SessionStorage\SessionStorageHandlerPool to accept an array of session handler provider plugins to its constructorSpryker\Yves\Session\SessionDependencyProvider and Spryker\Zed\Session\SessionDependencyProvider to allow the injection of session handler and storage releaser plugin stacksSpryker\Zed\Session\Business\Lock\Redis\SessionLockReader and Spryker\Zed\Session\Business\Lock\SessionLockReader to Spryker.SessionRedis module and deprecated the old once along with corresponding interfacesSpryker\Zed\Session\Business\Lock\SessionLockReleaser\SessionLockReleaserPool to accept an array of session lock releaser plugins to its constructorIncluded commits: https://github.com/spryker/session/compare/4.1.0...4.2.0
Included commits: https://github.com/spryker/session/compare/4.1.0...4.2.0
Adjusted both Yves and Zed SessionServiceProviders to extend session cookie lifetime.
Included commits: https://github.com/spryker/session/compare/4.0.0...4.1.0
Included commits: https://github.com/spryker/session/compare/4.0.0...4.1.0
Predis\Client as an array of dsns.Predis\Client.SessionConstants for environment configuration.Yves and Zed configuration files and factories were amended accordingly.Included commits: https://github.com/spryker/session/compare/3.2.4...4.0.0
Included commits: https://github.com/spryker/session/compare/3.2.4...4.0.0
Included commits: https://github.com/spryker/session/compare/3.2.5...3.3.0
Included commits: https://github.com/spryker/session/compare/3.2.5...3.3.0
Spryker\Client\Session\SessionClientInterface so it no longer extends Symfony SessionInterface.Included commits: https://github.com/spryker/session/compare/3.2.4...3.2.5
Included commits: https://github.com/spryker/session/compare/3.2.4...3.2.5
SessionConfig, so that Redis-related parameters are mandatory only for Redis-related handlers.Included commits: https://github.com/spryker/session/compare/3.2.3...3.2.4
Included commits: https://github.com/spryker/session/compare/3.2.3...3.2.4
Included commits: https://github.com/spryker/session/compare/3.2.2...3.2.3
Included commits: https://github.com/spryker/session/compare/3.2.2...3.2.3
Included commits: https://github.com/spryker/session/compare/3.2.1...3.2.2
Included commits: https://github.com/spryker/session/compare/3.2.1...3.2.2
$builder->add('foo', 'text') is replace by $builder->add('foo', TextType::class).Included commits: https://github.com/spryker/Session/compare/3.2.0...3.2.1
Included commits: https://github.com/spryker/Session/compare/3.2.0...3.2.1
Included commits: https://github.com/spryker/Session/compare/3.1.1...3.2.0
Included commits: https://github.com/spryker/Session/compare/3.1.1...3.2.0
Included commits: https://github.com/spryker/Session/compare/3.1.0...3.1.1
Included commits: https://github.com/spryker/Session/compare/3.1.0...3.1.1
Included commits: https://github.com/spryker/Session/compare/3.0.0...3.1.0
Included commits: https://github.com/spryker/Session/compare/3.0.0...3.1.0
Introduced a new Redis session-handler that supports session locking.
In order add support for session locking with Redis, a couple of modifications have to be applied to project implementation.
The following lines have to be added to the switch statement in SessionServiceProvider::setSessionStorageHandler to enable registering the new session handler in Yves:
protected function setSessionStorageHandler(Application $app, $saveHandler)
{
// ...
switch ($saveHandler) {
case SessionConstants::SESSION_HANDLER_REDIS_LOCKING:
$redisSessionHandler = $sessionHelper->createRedisLockingSessionHandler($this->getSavePath($saveHandler));
$app['session.storage.handler'] = $app->share(function () use ($redisSessionHandler) {
return $redisSessionHandler;
});
break;
// ...
}
}
The switch statement in SessionServiceProvider::getSavePath() has to get extended as well to provide connection details for the new session handler. (The connection details are not different from the ones that are used with the existing Redis session handler.)
protected function getSavePath($saveHandler)
{
// ...
switch ($saveHandler) {
case SessionConstants::SESSION_HANDLER_REDIS:
case SessionConstants::SESSION_HANDLER_REDIS_LOCKING:
$path = $this->getConnectionString();
break;
// ...
}
// ....
return $path;
}
Finally, to use the new session handler, the configuration for SessionConstants::YVES_SESSION_SAVE_HANDLER to SessionConstants::SESSION_HANDLER_REDIS_LOCKING. This will enable locked session handling with Redis for Yves
Included commits: https://github.com/spryker/Session/compare/2.2.2...3.0.0
Included commits: https://github.com/spryker/Session/compare/2.2.2...3.0.0
SessionClientServiceProvider.SessionClientFactoryTrait.Included commits: https://github.com/spryker/Session/compare/2.2.1...2.2.2
Included commits: https://github.com/spryker/Session/compare/2.2.1...2.2.2
The current check for CLI detection was only using 'cli' string.
The string 'phpdbg' is also a valid CLI identifier and has been added to detect CLI.
Included commits: https://github.com/spryker/Session/compare/2.2.0...2.2.1
Included commits: https://github.com/spryker/Session/compare/2.2.0...2.2.1
Included commits: https://github.com/spryker/Session/compare/2.1.2...2.2.0
Included commits: https://github.com/spryker/Session/compare/2.1.2...2.2.0
Use new NewRelic classes.
Included commits: https://github.com/spryker/Session/compare/2.1.1...2.1.2
Included commits: https://github.com/spryker/Session/compare/2.1.1...2.1.2
If you want to separate Yves session now from KV storage, please set the new database config to a different value (default value of redis database is 0):
$config[SessionConstants::YVES_SESSION_REDIS_DATABASE] = 1;
You can also separate the Zed session into it's own instance or database now if you use the default Redis storage:
$config[SessionConstants::ZED_SESSION_REDIS_DATABASE] = 2;
Included commits: https://github.com/spryker/Session/compare/2.1.0...2.1.1
Included commits: https://github.com/spryker/Session/compare/2.1.0...2.1.1
Fixed checks for new config options.
Included commits: https://github.com/spryker/Session/compare/2.0.1...2.1.0
Included commits: https://github.com/spryker/Session/compare/2.0.1...2.1.0
Included commits: https://github.com/spryker/Session/compare/2.0.0...2.0.1
Included commits: https://github.com/spryker/Session/compare/2.0.0...2.0.1
httponly flag is set for the session ID cookie.
Release Session bundle with version 2.0.0
Release Session bundle with version 2.0.0
Release Session bundle with version 2.0.0-RC2
Release Session bundle with version 2.0.0-RC2
Release Session bundle with version 2.0.0-RC1
Release Session bundle with version 2.0.0-RC1
Release Session bundle with version 1.0.0
Release Session bundle with version 1.0.0
Release Session bundle with version 0.20.0
Release Session bundle with version 0.20.0
One column per quarter.