File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
10
Changes with lua-resty-session 2.2 17 Sep 2015
2
11
3
12
*) Change: Removed all session_cipher_* deprecated settings
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ local function regenerate(session, flush)
97
97
local i = session .present and session .id or nil
98
98
session .id = random (session .identifier .length )
99
99
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 );
102
102
end
103
103
session .data = {}
104
104
end
You can’t perform that action at this time.
0 commit comments