- Made compatible with XP 12 - @thekid
- Added PHP 8.4 to the test matrix - @thekid
- Made this library compatible with xp-forge/web version 4.0 - @thekid
- Merged PR #14: Migrate to new testing library - @thekid
This major release removes the ability to exchange the session transport and hardwires it to use cookies, making session implementations easier. Typical usage scenarios haven't included exchanging the transport, and in these situations no change to the calling code is required.
- Merged PR #12: Add
gc()
method toSessions
base class - @thekid - Merged PR #11: Fold transport functionality into sessions - @thekid
- Made compatible with XP 11 - @thekid
- Made compatible with XP web 3.0, see xp-forge/web#83 - @thekid
- Made
web.session.ISession
interface implementlang.Closeable
(@thekid)
This release drops support for PHP 5 as discused in xp-framework/rfc#334. The minimum required PHP version now is PHP 7.0.0!
- Rewrote code base, grouping use statements - @thekid
- Rewrote
isset(X) ? X : default
toX ?? default
- @thekid
- Made compatible with XP 10 - @thekid
- Fixed cookie transport to transmit path and domain when deleting the cookie. See PR #9 for discussion. (@thekid)
The first major release extracts session transport to its own class.
- Heads up: The
Sessions::in($path)
andSessions::insecure()
methods modifying cookie attributes have been removed and are now in theweb.session.Cookies
class, alongside others. (@thekid) - Merged PR #8: Extract session transport to its own class - @thekid
- Merged PR #6: Secure session cookies
- Changed session cookie to be transmitted via HTTPS only by default.
- Added web.session.Sessions::insecure(bool $whether) to restore old behaviour. (@mikey179)
- Changed
ISession::remove()
to return whether the value being deleted previously existed or not, and not void. (@thekid)
- Merged PR #5: Add web.session.ISession::keys() and implementations (@thekid)
- Merged PR #3: Refactor session API: Standalone use vs. with request and response. Heads up: This contains a breaking API change! (@thekid)
- Added
Sessions::in($path)
method to be able to influence the session cookies' paths, which defaults to "/" (@thekid)
- Merged PR #2: Tie sessions to request / response - @thekid
- Merged PR #1: Implement a filesystem-based session - @thekid
- Initial implementation - (@thekid)