Releases: phpgt/Session
Release list
Redis improvements
Improvements to the Redis-powered session storage, making it easier to run PHP applications across multiple servers without losing user sessions.
Building on the latest release, the new code adds GT\Session\RedisHandler, with support for Redis-compatible services including Redis and Valkey. Configuration uses familiar DSN-style connection strings, including TLS, authentication, database selection, key prefixes, timeouts and persistent connections.
This update also improves session start handling, keeps file-based session paths working as before, and tidies the package with clearer interfaces and Composer test scripts.
What's Changed
- build(deps): bump phpgt/typesafegetter from 1.3.2 to 1.3.3 by @dependabot[bot] in #274
- Redis handler by @g105b in #273
- Gt tidy by @g105b in #275
- Redis followup from #272 by @g105b in #279
Full Changelog: v1.2.5...v1.2.6
No static functions
What's Changed
- Add JetBrains sponsorship to README with H1 heading by @g105b in #267
- tweak: remove static function for test mockability by @g105b in #269
Full Changelog: v1.2.4...v1.2.5
September 2025 release
This release addresses a change in how sessions are constructed (more specifically, how unserialize handles errors).
Upgrading to the previous release v1.2.3 could have caused an issue where the contents of the session data was not unserializable, and caused a fatal error to be thrown. If this happens in this release, the session is destroyed and created again on the next request.
What's Changed
Full Changelog: v1.2.3...v1.2.4
June 2025 release
What's Changed
- Safely check for PHP<8.4 key
use_trans_sidto avoid warnings in logs - Iterable session store by @g105b in #254
- Flash session by @g105b in #255
- Upgrade PHPMD CI by @g105b in #256
- Bump phpstan/phpstan from 1.12.25 to 2.1.14 by @dependabot in #257
Full Changelog: v1.2.2...v1.2.3
May 2025 release
What's Changed
Full Changelog: v1.2.1...v1.2.2
Same-site cookie option
After enhancing the default security options in v1.1.5, this has added difficulty to some users when developing locally (as a strict same-site cookie option causes lots of issues on localhost or 127.* IPs). The default option is now changed to Same-site: Lax, which introduces the cookie option but doesn't enforce the strict policy on localhost.
CI and QA improvements
Matrix builds are now standard for every push, building on all supported PHP versions concurrently.
During the CI process, three QA tools are introduced: Mess Detector, Code Sniffer and PHPStan.
Have fun!
Minor type improvement
This minor patch release allows any ArrayAccess object to be used as Config - this is used in WebEngine by passing a ConfigSection object.
PHP 8.1 compatibility
PHP 8.1 deprecation notices are handled in this minor patch release.
Minor improvements
In this minor patch release:
- Dependency updates
- Improvements to unit tests
- Use PHP's internal serialisation for session data