Skip to content

Conversation

@whiteh
Copy link
Contributor

@whiteh whiteh commented Jan 2, 2026

Add in capability to set custom cookie attributes.

cookieAttributes - Set on the Netacea session cookie
captchaCookieAttributes - Set on the Netacea captcha cookie

Usage

netacea = (require 'lua_resty_netacea'):new({
   ...
   cookieAttributes              = 'Path=/; httponly;',
   captchaCookieAttributes = 'Path=/; httponly;',

Outcome (in a HTTP response)

Set-Cookie: _mitata=aaa....;Path=/; httponly;
Set-Cookie: _captchamitata=aaa...;Path=/; httponly;

@whiteh whiteh requested a review from a team as a code owner January 2, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants