Revision history for Perl extension Web::Session (formerly Apache::Session::Browseable).

1.2.0
    - Security: Web::Session::Generate::SHA256 no longer falls back to a
      predictable session ID (derived from time, rand() and the PID) when the
      system random source can't be read: creating the session dies instead
      (see Web::Session::Generate::SHA256)
    - Redis, with reuse: a connection broken by a restart of Redis, a
      network failure or a Sentinel failover is replaced by a new one,
      instead of making every following session fail until the process
      restarts; the database is selected once, not at each tie (see
      "PERSISTENT CONNECTION" in Web::Session::Redis)
    - PostgreSQL backends: connections get connect_timeout=5 and
      tcp_user_timeout=10000 unless the DataSource sets them, so that a
      request fails within seconds instead of waiting about 15 minutes
      when the server stops answering (see "TIMEOUTS" in Web::Session)
    - Patroni: when the leader cache is empty or expired, the Patroni API is
      asked before connecting, instead of failing first on a DataSource
      that points to a replica (see Web::Session::Patroni)
    - Redis: fewer round trips. A new session is written once, at untie,
      with its index entries, in one round trip (instead of an empty session
      at tie, then a checked update); until its untie, other processes can't
      read it. An update and its index entries are written by one Lua
      script; a session is deleted in one round trip. No proxy spreading
      keys between Redis servers must stand in front of Redis (see
      Web::Session::Store::Redis)
    - Redis: full scans (get_key_from_all_sessions(), searches on fields not
      indexed, searchLt(), searchGt(), deleteIfLowerThan()) read the
      sessions by batches of 1000 keys with MGET, instead of a TYPE and a GET
      for each key, and the purge deletes sessions and index entries by
      pipelines: on 100,000 sessions, a full scan went from 8.8 to 1.3
      seconds and a purge from 19 to 3 seconds with Redis on the same host,
      much more over a network. A Redis failure during deleteIfLowerThan()
      (lost connection, read-only replica) prints the error and returns a
      false status with the number of sessions deleted before, so that
      LemonLDAP::NG falls back to its own purge (see "ERRORS" in
      Web::Session)
    - MySQLJSON and MariaDBJSON: a new session is written once, at untie:
      one INSERT and one commit instead of two writes; until its untie,
      other processes can't read it (see "New sessions" in
      Web::Session::MySQLJSON)
    - SQL backends: a reused connection is no longer pinged at each tie when
      it was used less than 30 seconds ago and the server didn't close it,
      saving a round trip per session access (see "PERSISTENT DATABASE
      CONNECTIONS" in Web::Session)
    - Patroni: a tie that wrote nothing ends with a ROLLBACK instead of a
      COMMIT, which waited for the WAL to be flushed to disk because of the
      row lock: reading a session no longer costs a disk write (see
      "Unchanged sessions" in Web::Session::Patroni)
    - PgJSON (connection pool): when the INSERT of a new session fails at
      untie, it is tried again when the store is freed with the data of the
      session, not with its empty data of the tie

1.1.0
    - Redis: new utimeOffset option (Redis >= 7.4 or Valkey >= 9): sessions
      and their index entries expire at _utime + utimeOffset (persistent
      sessions excluded), see Web::Session::Store::Redis
    - Security: Redis: concurrent updates of a session are merged key by key
      instead of losing one of them, and a session or token deleted (logout,
      revocation, purge) while another request was updating it is no longer
      written back: update() dies (see Web::Session::Store::Redis)
    - SQL backends: a session deleted or expired while it was tied makes
      update() die, so that a wrapper that caches sessions doesn't keep it;
      update() returns true otherwise, also for an unchanged session (see
      "SESSIONS DELETED WHILE THEY ARE TIED" in Web::Session)
    - PgJSON and Patroni: new updateKeys() class method, sets or deletes some
      keys of a session in one statement, without reading it, see
      Web::Session::PgJSON

1.0.0 (Web::Session, fork of Apache::Session::Browseable 1.4.0)
    - Fork of Apache::Session::Browseable, renamed Web::Session
      (https://github.com/linagora/perl-Web-Session)
    - Apache::Session::Serialize::JSON and Apache::Session::Generate::SHA256
      renamed Web::Session::Serialize::JSON and Web::Session::Generate::SHA256
    - Postgres is now an alias of PgJSON, MySQL of MySQLJSON; new MariaDB
      alias of MariaDBJSON
    - Drop the Oracle, Informix, Sybase and PgHstore backends
    - New MariaDBJSON backend
    - PgJSON and Postgres: connection pool used by default (MaxIdle,
      IdleTimeout, MaxLifetime; KeepConnections => 0 to disable), one
      connection per tied session, a new session written once
    - PgJSON and Postgres: Commit is on by default when no Handle is given
      (Commit => 0 to roll back at untie)
    - Patroni: uses the same pool, keyed by the primary node, with one
      transaction per tied session (the row read stays locked until untie)
    - PgJSON and Postgres: class methods (searchOn(), deleteIfLowerThan()...)
      borrow a connection of the pool for each call
    - DBI backends reuse their connection by default (noreuse to disable),
      fork safe
    - searchLt() and searchGt() for SQL, Redis and LDAP backends; if the SQL
      comparison fails, sessions are compared in Perl (see "ERRORS" in
      Web::Session)
    - PgJSON: optional GIN index (GinIndex)
    - SQL backends don't rewrite a session stored back unchanged
      (RewriteUnchanged to always write it); the JSON serializer sorts keys
    - Quote table and column names; fix SQL injections through
      deleteIfLowerThan() values and JSON field names
    - deleteIfLowerThan(): fix "and" and "not" rules, invalid rules
    - PostgreSQL: deleteIfLowerThan() deletes by batches
      ($Web::Session::_common::BatchSize)
    - Faster full scans (batches, no eval per row), index documentation
    - JSON serializer: decode UTF-8 bytes, Redis supports characters above
      U+00FF
    - Many Redis fixes (index cleanup, foreign keys, glob characters,
      batched reads)
    - LDAP: deleteIfLowerThan()
