Skip to content

Commit cdbf18f

Browse files
committed
Release 2.3, Fixes issue #19.
1 parent af98718 commit cdbf18f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGES

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Changes with lua-resty-session 2.3 16 Oct 2015
2+
3+
*) Bugfix: Fixes issue #19 where regenerating session would
4+
throw an error when using cookie storage.
5+
6+
See Also: https://github.com/bungle/lua-resty-session/issues/19
7+
8+
Thanks @hulu1522
9+
110
Changes with lua-resty-session 2.2 17 Sep 2015
211

312
*) Change: Removed all session_cipher_* deprecated settings

lib/resty/session.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ local function regenerate(session, flush)
9797
local i = session.present and session.id or nil
9898
session.id = random(session.identifier.length)
9999
if flush then
100-
if i then
101-
session.storage.destroy(i);
100+
if i and session.storage.destroy then
101+
session.storage:destroy(i);
102102
end
103103
session.data = {}
104104
end

0 commit comments

Comments
 (0)