All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- zendframework/zend-expressive-session#38 adds
InitializeSessionIdInterface
andInitializePersistenceIdInterface
. These addinitializeId()
methods to session and persistence, allowing developers to access new or regenerated session IDs before the session is persisted.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- zendframework/zend-expressive-session#33 adds support for PHP 7.3.
- zendframework/zend-expressive-session#34 provides several performance optimizations in
Mezzios\Session\LazySession
.
- Nothing.
- Nothing.
- Nothing.
- zendframework/zend-expressive-session#28 adds a new interface,
SessionCookiePersistenceInterface
, defining:- the constant
SESSION_LIFETIME_KEY
- the method
persistSessionFor(int $duration) : void
, for developers to hint to the persistence engine how long a session should last - the method
getSessionLifetime() : int
, for persistence engines to determine if a specific session duration was requested
- the constant
- zendframework/zend-expressive-session#28 updates both
Session
andLazySession
to implement the newSessionCookiePersistenceInterface. If a
SessionCookiePersistenceInterface::SESSION_LIFETIME_KEYis present in the initial session data provided to a
Session` instance, this value will be used to indicate the requested session duration; otherwise, zero is used, indicating the session should end when the browser is closed.
- Nothing.
- Nothing.
- Nothing.
- zendframework/zend-expressive-session#27 adds a new interface,
Mezzio\Session\SessionIdentifierAwareInterface
.SessionInterface
implementations should also implement this interface, and persistence implementations should only create and consume session implementations that implement it. The interface defines a single method,getId()
, representing the identifier of a discovered session. This allows the identifier to be associated with its session data, ensuring that when concurrent requests are made, persistence operates on the correct identifier.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- zendframework/zend-expressive-session#18 adds support for PSR-15 middleware.
- Nothing.
- Nothing.
-
zendframework/zend-expressive-session#14 and zendframework/zend-expressive-session#18 remove support for http-interop/http-middleware and http-interop/http-server-middleware.
-
zendframework/zend-expressive-session#5 removes the method
LazySession::segment()
. This method was a remnant from a previous refactor, and not intended for the final API. Considering thatSession
does not implement the method, calling it would lead to a fatal error anyways.
- Nothing.
Initial release.
- Everything.
- Nothing.
- Nothing.
- Nothing.
- Nothing.