-
Notifications
You must be signed in to change notification settings - Fork 19
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
Read Set-Cookie header options from Session plug's options #187
Read Set-Cookie header options from Session plug's options #187
Conversation
I couldn't find such test in this repository...
I'm not sure because I don't know the detailed requirement, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I don't think you need to write test code for testgear, but I want to confirm that you manually tested this. |
I'm not sure what |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if you have tested this PR
please wait while I prepare some evidence 🙇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I got some evidence of how this works. Prerequisites
Actual evidenceIn testgear's BeforeAfterNote that the new Set-Cookie header has the Max-Age value. |
Great! Thank you! |
Rationale
This is related to #186 (specifically "Add an interface to
Antikythera.Plug.Session.load/2
"), but it stems from a different purpose, where we needed to explicitly set the expiration period of the session cookie.This enables the gear to specify the behavior of the session cookie via the keyword list passed to the plug.
Part that I may need help on
load/2
'sopts
variable. The keyword list should accept a map (which is passed tomake_before_send/3
), but this specification might be too broadmix dialyzer
and got no warnings