All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #51 provides a fix to
the
DbTableGateway
save handler to prevent infinite recursion when attempting to destroy an expired record during initial read operations. - #45 updates the
SessionManager::regenerateId()
method to only regenerate the identifier if a session already exists.
- Nothing.
- Nothing.
- Nothing.
- #46 provides fixes to
each of the
Cache
andDbTaleGateway
save handlers to ensure they work when used under PHP 7.
- #40 adds and publishes the documentation to https://zendframework.github.io/zend-session/
- Nothing.
- Nothing.
- #38 ensures that the
value from
session.gc_maxlifetime
is cast to an integer before assigning it as thelifetime
value in theMongoDB
adapter, ensuring sessions may be deleted.
- #23 provides a new
Id
validator to ensure that the session identifier is not malformed. This validator is now enabled by default; to disable it, pass['attach_default_validators' => false]
as the fifth argument toSessionManager
, or pass anoptions
array with that value under thesession_manager
configuration key. - #34 adds the option
to use
exporeAfterSeconds
with theMongoDB
save handler. - #37 exposes the
package as a standalone config-provider/component, adding:
Zend\Session\ConfigProvider
, which maps the default services offered by the package, including theContainerAbstractServiceFactory
.Zend\Session\Module
, which does the same, but for zend-mvc contexts.
- Nothing.
- Nothing.
- #34 updates the
component to use ext/mongodb + the MongoDB PHP client library, instead of
ext/mongo, for purposes of the
MongoDB
save handler, allowing the component to be used with modern MongoDB installations.
- Nothing.
- Nothing.
- Nothing.
- #32 provides a better
polfill for the
ValidatorChain
to ensure it can be represented in auto-generated classmaps (e.g., viacomposer dump-autoload --optimize
and/orcomposer dump-autoload --classmap-authoritative
).
- Nothing.
- Nothing.
- Nothing.
- #29 extracts the
constructor defined in
Zend\Session\Validator\ValidatorChainTrait
and pushes it into each of theValidatorChainEM2
andValidatorChainEM3
implementations, to prevent colliding constructor definitions due to inheritance + trait usage.
- #29 adds two new
classes:
Zend\Session\Validator\ValidatorChainEM2
andValidatorChainEM3
. Due to differences in theEventManagerInterface::attach()
method between zend-eventmanager v2 and v3, and the fact thatValidatorChain
overrides that method, we now need an implementation targeting each major version. To provide a consistent use case, we use a polyfill that aliases the appropriate version to theZend\Session\ValidatorChain
class.
- Nothing.
- Nothing.
- #29 updates the code to be forwards compatible with the v3 releases of zend-eventmanager and zend-servicemanager.
- #7 Mongo save handler was using sprintf formatting without sprintf.
- Nothing.
- Nothing.
- Nothing.