Skip to content

Closed - #59

Closed
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-cookie-default-options
Closed

Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-cookie-default-options

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

Cookie::set() passed its options straight to setcookie(), so every caller
had to remember secure, httponly and samesite on each call, and it ignored
the result: the value was stored in the object even when the cookie could
not be sent because headers were already out.

Defaults can now be configured once with the cookie_options option, which
Input hands on to its cookie input; options passed to set() override
them. set() returns setcookie()'s result and only updates the data when
the cookie was sent. The built-in defaults are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar Hackwar closed this Nov 13, 2026
@Hackwar Hackwar changed the title [4.x] Add configurable default cookie options and return the result of setcookie() Closed Nov 13, 2026
@Hackwar
Hackwar deleted the 4.x-cookie-default-options branch November 13, 2026 12:52
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.

1 participant