Skip to content

Releases: AppsDevTeam/doctrine-session-handler

v2.6.3: Merge pull request #6 from AppsDevTeam/fix/binary-safe-session-data

Choose a tag to compare

@thorewi thorewi released this 17 Sep 16:55
3cb2b2e
Store binary session payloads base64 encoded

v2.6.2

Choose a tag to compare

@thorewi thorewi released this 17 Aug 12:14
Use DateTimeImmutable for session expiration check

v2.6.1: Enforce immediate expiration of sessions during read

Choose a tag to compare

@thorewi thorewi released this 17 Aug 12:07
PHP does not enforce `session.gc_maxlifetime` with a custom session handler. Without this explicit check, sessions could remain readable and active even after their `expiresAt` timestamp, relying solely on garbage collection for removal.

This change ensures that any attempt to read an expired session returns an empty string, immediately preventing its use and aligning with the intended session lifetime.

v2.6: Implement batched session cleanup to prevent database issues

Choose a tag to compare

@thorewi thorewi released this 17 Aug 12:04
PHP's inline session garbage collection performs a single bulk DELETE,
which causes lock contention, Galera write-set overflows, and can lead
to unbounded session table growth and PHP-FPM saturation on large datasets.

This change introduces `SessionCleaner` to delete expired sessions in batches.
It provides a new `session:cleanup` console command for robust cron-based
cleanup and configures the `Handler::gc()` to also use limited batched deletion.

Requires an index on the `expiresAt` column for efficient deletion.

v2.5

Choose a tag to compare

@thorewi thorewi released this 26 Jan 13:23
23ed111
Update Handler.php

v2.4

Choose a tag to compare

@thorewi thorewi released this 26 Jan 06:03
f3a90f0
Update SessionTrait.php

v2.3.1: Merge pull request #5 from AppsDevTeam/fix-SessionTrait-data-type

Choose a tag to compare

@thorewi thorewi released this 23 Nov 14:52
0255f3f
Fix SessionTrait.data type in attribute

v2.3: Merge pull request #4 from AppsDevTeam/update-session-storage

Choose a tag to compare

@thorewi thorewi released this 23 Nov 12:47
4204f2b
Update SessionStorage

v2.2: Merge pull request #2 from AppsDevTeam/2.x

Choose a tag to compare

@thorewi thorewi released this 06 Feb 12:47
eed43e0
Změna flush na queryBuilder

v1.2

Choose a tag to compare

@OndrejKubicek OndrejKubicek released this 06 Feb 12:45
a618ac8
Merge pull request #3 from AppsDevTeam/1.2

Změna flush na queryBuilder