Releases: odan/session
Releases · odan/session
6.4.1
6.4.0
6.3.0
6.2.0
6.1.0
6.0.0
Changes
- Require PHP 8.0+
- Make session settings "immutable".
- Move all session settings to the
PhpSessionconstructor. - Provide interfaces for each concern (management and session data).
- Change
SessionInterfaceto handle session data operations only, e.g.get,set. - Rename session method
replacetosetValues. - Rename session method
removetodelete. - Calling the session
savemethod is now optional. - Rename class
Odan\Session\Middleware\SessionMiddlewaretoOdan\Session\Middleware\SessionStartMiddleware.
Added
- Add
SessionManagerInterfaceto handle session operations, such asstart,save,destroy,getName, etc. - Add
defaultparameter to sessiongetmethod.
Removed
- Remove session method
setOptionsandgetOptions. Pass all settings intoPhpSessionconstructor instead. - Remove session method
setCookieParamsandgetCookieParams. The cookie parameters must be
defined in the settings and will set in the sessionstartmethod. - Remove session
setNamemethod. Use thenamesetting instead. - Remove session
setIdmethod. Use the optionalidsetting instead. - Remove session
countmethod. - Remove
SessionAwareInterfacein favor of dependency injection.
Changelog: https://github.com/odan/session/blob/master/CHANGELOG.md#600---2022-12-04
5.1.0
4.1.0
5.0.0
Changes
- All classes are “final” by default. So extending will not be possible anymore.
- Removed
SessionDoublePassMiddleware - Moved
SessionMiddlewareinto its own namespace:Odan\Session\Middleware - New SessionInterface
- Throw
SessionExceptioninstead of returning false for error
Added
- Added flash massages
- Added
SessionException - Added new documentation for v4 and v5
All Details: #7
Documentation: https://odan.github.io/session/v5/