Skip to content

Commit ed6499d

Browse files
committed
Release 2.15.
1 parent 67b8354 commit ed6499d

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Changes.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to `lua-resty-session` will be documented in this file.
44

5+
## [2.15] - 2017-02-13
6+
7+
## Added
8+
- Added a support for chunked cookies.
9+
See also: https://github.com/bungle/lua-resty-session/issues/35
10+
Thanks @zandbelt
11+
512
## [2.14] - 2016-12-16
613
### Fixed
714
- Lua code configuration parsing corrections (especially on boolean

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,13 @@ want to turn this off, this can be configured with Nginx `set $session_cookie_ht
777777
delimited. By default it is a pipe character, `|`. It is up to storage adapter to decide if this configuration
778778
parameter is used.
779779

780+
#### number session.cookie.chunks
781+
782+
`session.cookie.chunks` should be used as a read only property to determine how many separate cookies was
783+
used for a session. Usually this is `1`, but if you are using a `cookie` storage backend and store a lot
784+
of data in session, then the cookie is divided to `n` chunks where each stores data containing 4.000 bytes
785+
(the last one 4000 or less). This was implemented in version 2.15.
786+
780787
#### boolean session.check.ssi
781788

782789
`session.check.ssi` is additional check to validate that the request was made with the same SSL

lib/resty/session.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ local defaults = {
195195
defaults.secret = var.session_secret or random(32, true) or random(32)
196196

197197
local session = {
198-
_VERSION = "2.15-dev"
198+
_VERSION = "2.15"
199199
}
200200

201201
session.__index = session

0 commit comments

Comments
 (0)