bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
320 stars 111 forks source link

Using session:hide() in version 4.x #183

Open vavra5 opened 1 month ago

vavra5 commented 1 month ago

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/"