Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception for oversized cookies #574

Open
win36 opened this issue Nov 7, 2022 · 0 comments
Open

Throw exception for oversized cookies #574

win36 opened this issue Nov 7, 2022 · 0 comments

Comments

@win36
Copy link

win36 commented Nov 7, 2022

Is your feature request related to a problem? Please describe.
When dealing with larger objects, putObject() cannot be used, because you need to render and size-check the cookie yourself.

Describe the solution you'd like
If a Cookie matching or exceeding 4K is detected when trying to write, an exception should be thrown.
To match all use cases, making this behavior a non-default cookie option might be a good idea.

Describe alternatives you've considered
So far you can work around this issue by not using putObject() and doing serialization and size checking manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant