Releases: AppsDevTeam/doctrine-session-handler
Releases · AppsDevTeam/doctrine-session-handler
Release list
v2.6.3: Merge pull request #6 from AppsDevTeam/fix/binary-safe-session-data
v2.6.2
v2.6.1: Enforce immediate expiration of sessions during read
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
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
v2.4
v2.3.1: Merge pull request #5 from AppsDevTeam/fix-SessionTrait-data-type
Fix SessionTrait.data type in attribute
v2.3: Merge pull request #4 from AppsDevTeam/update-session-storage
Update SessionStorage
v2.2: Merge pull request #2 from AppsDevTeam/2.x
Změna flush na queryBuilder
v1.2
Merge pull request #3 from AppsDevTeam/1.2 Změna flush na queryBuilder