bungle/lua-resty-session

Using session:hide() in version 4.x

Opened this issue · 0 comments

Hello,

I am testing out the latest version of 'lua-resty-openidc' v1.8.0 which now supports v4.0.5+ of 'lua-resty-session'. In my config I had been using 'session:hide()' in order to not pass the session cookie to the upstream. Has this been removed in the latest version? I can not find any mention of this in the docs.

This is the error I now encounter.

[error] 10#10: *1 lua entry thread aborted: runtime error: access_by_lua(/etc/nginx/conf.d/default.conf:1176):236: attempt to call method 'hide' (a nil value) 2024-09-24 16:37:08 stack traceback: 2024-09-24 16:37:08 coroutine 0: 2024-09-24 16:37:08 access_by_lua(/etc/nginx/conf.d/default.conf:1176): in main chunk, client: 127.0.0.1, server: 127.0.0.1, request: "GET / HTTP/1.1", host: "127.0.0.1", referrer: "https://127.0.0.1/"