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