You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(session): exchange_once option to save (exchange) a session only once, for server-side storage sessions and for cookie sessions with a revocation storage
feat(storage): atomic add in all the built-in storages
feat(storage): replace in all the built-in storages (atomic except with file and dshm), used by session.info:save so that it does not bring back a destroyed session
feat(session): session:is_existing, session:is_stale, and session:is_closed
feat(session): storage_cache_ttl (and storage_cache_size) option for a worker-local cache of the session data of server-side storage sessions (disabled by default)
perf(utils): derive keys (HKDF-Expand) with a reused HMAC instance instead of the KDF of resty.openssl, which makes opening and saving a session about 5 times faster (the derived keys stay the same)
Fixed
fix(session): with several audiences, session metadata stored the subjects as they are, without encoding or hashing them, which allowed SQL injection with the mysql and postgres storages (and broke saves with subjects that have quotes) when store_metadata was enabled
fix(session): session.info:save returned nil on success and did not save the info of the remember session (since 4.0.0)
fix(session): stored sessions were not limited to the absolute timeout (since 4.1.0)
fix(mysql): connections were closed instead of reused after multi-statement queries
fix(memcached, dshm): saving a stale session again extended the stale session
fix(postgres): with a database time zone other than UTC, the clean up deleted valid sessions (or kept expired ones), and session metadata was not found
fix(postgres): the pool option was not used
fix(memcached): sessions and revocation marks with a ttl over 30 days expired immediately
fix(session): session:refresh renewed the session only after more than 75% of the rolling timeout was spent (rounded up), and never with rolling timeouts of 3 seconds or less
fix(session): a cookie session that was revoked elsewhere, but was not revoked in the revocation cache, could be saved, which exchanged it for a new session that was not revoked (since 4.3.0)
fix(session): a revocation storage error cached in "open" fail mode was used in "closed" fail mode, and the revocation cache was not created with only revocation_error_cache_ttl