Releases: odan/session
Releases · odan/session
6.2.0
6.1.0
6.0.0
Changes
- Require PHP 8.0+
- Make session settings "immutable".
- Move all session settings to the
PhpSession
constructor. - Provide interfaces for each concern (management and session data).
- Change
SessionInterface
to handle session data operations only, e.g.get
,set
. - Rename session method
replace
tosetValues
. - Rename session method
remove
todelete
. - Calling the session
save
method is now optional. - Rename class
Odan\Session\Middleware\SessionMiddleware
toOdan\Session\Middleware\SessionStartMiddleware
.
Added
- Add
SessionManagerInterface
to handle session operations, such asstart
,save
,destroy
,getName
, etc. - Add
default
parameter to sessionget
method.
Removed
- Remove session method
setOptions
andgetOptions
. Pass all settings intoPhpSession
constructor instead. - Remove session method
setCookieParams
andgetCookieParams
. The cookie parameters must be
defined in the settings and will set in the sessionstart
method. - Remove session
setName
method. Use thename
setting instead. - Remove session
setId
method. Use the optionalid
setting instead. - Remove session
count
method. - Remove
SessionAwareInterface
in 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
SessionMiddleware
into its own namespace:Odan\Session\Middleware
- New SessionInterface
- Throw
SessionException
instead 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/