Skip to content

Releases: phpgt/Session

Redis improvements

Choose a tag to compare

@g105b g105b released this 15 Jul 09:27
56ceb00

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

Full Changelog: v1.2.5...v1.2.6

No static functions

Choose a tag to compare

@g105b g105b released this 31 Oct 16:04
c9a50b4

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

Choose a tag to compare

@g105b g105b released this 25 Sep 10:46
acdf1f7

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

  • fix: destroy previous session if unserialize fails closes #261 by @g105b in #262

Full Changelog: v1.2.3...v1.2.4

June 2025 release

Choose a tag to compare

@g105b g105b released this 12 Jun 10:40
ddf4b53

What's Changed

  • Safely check for PHP<8.4 key use_trans_sid to 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

Choose a tag to compare

@g105b g105b released this 05 May 12:08
4de609d

What's Changed

Full Changelog: v1.2.1...v1.2.2

Same-site cookie option

Choose a tag to compare

@g105b g105b released this 25 May 15:17
b2e21a3

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

Choose a tag to compare

@g105b g105b released this 28 Apr 16:12
e1e4df3

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

Choose a tag to compare

@g105b g105b released this 08 Mar 15:41
4ec55d2

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

Choose a tag to compare

@g105b g105b released this 08 Mar 15:16
6ab24bd

PHP 8.1 deprecation notices are handled in this minor patch release.

Minor improvements

Choose a tag to compare

@g105b g105b released this 05 Nov 12:01
5da8795

In this minor patch release:

  • Dependency updates
  • Improvements to unit tests
  • Use PHP's internal serialisation for session data