Releases: bungle/lua-resty-session
Releases · bungle/lua-resty-session
Release 3.1
Added
- A more flexible way to specify custom implementations:
require "resty.session".new { storage = require "my.storage"
Release 3.0
Fixed
- Lock releasing is a lot more robust now
Added
- Add idletime setting (thanks @Tieske), see
session.cookie.idletime
- Add support for Cookie prefixes
__Host-
and__Secure-
on Cookie
name (see: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-05#section-4.1.3)
Changed
- The whole codebase was refactored and simplified, especially implementing
new storage adapters is now a lot easier - Redis and Memcached
spinlockwait
was changed from microseconds to milliseconds and default
is set to150
milliseconds, - Redis and Memcache will only release locks that current session instance holds
- DSHM
session_dshm_store
was renamed tosession_dshm_region
- BASE64 encoding now strips the padding
Release 2.2.6
Release 2.25
Added
- Add SSL support for the Redis storage option (#75) (thanks @Tieske)
- DSHM storage adapter (a distributed SHM storage based on Hazelcast for Nginx) (thanks @grrolland)
Release 2.24
Fixed
- Avoid use unix socket and redis password with empty string
- Provide session id when closing, otherwise the lock is not deleted
Added
- Added a configuration for session cookie max size (
session.cookie.maxsize
)
Release 2.23
Added
- Added pluggable strategies with
default
and a newregenerate
strategy - Added pluggable
hmac
s - Added
session.close
- Added
ttl
tostorages
- Added
session.cookie.discard
, attl
how long to keep old sessions when
renewing (used byregenerate
strategy
Release 2.22
Fixed
- Only sets self.cookie.secure if not defined (was introduced in 2.20/2.21)
Release 2.21
Release 2.19
Fixed
- Fixes small bug where aes could generate invalid salt on invalid input that further crashes Lua with error:
bad argument #2 to 'salt' (number expected, got no value)
Release 2.18
Fixed
- Automatically creates exactly 64 bits salt as required by the latest lua-resty-string. See also: #40. Thanks @peturorri.