You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's wrong with this?
Cookies are always generated unless you use something like withAttribute(VaultSessionReset.key, VaultSessionReset) in a Meiji way.
I added the following Route to VaultSessionExample as a test, and a cookie was generated even though I did not set an Attribute in the Response.
caseGET->Root/"context"/"not"/"empty"=>Ok("Context not empty")
I think we should only generate cookies if we explicitly set a value for attributes in the response.
The easiest way is to add a conditional branch so that a value is passed to ContextResponse only if Response or Context is empty.
Hi there 👋
When EmberServer is used, Request attributes will never be empty.
This is because EmberServer stores connection and other information in attributes by default.
Corresponding code
Also, it is not possible to explicitly change the conditional branching of whether connection information is stored in attributes by default.
This means that whenever unixSocket is not used, there will always be a value for attributes.
I checked what the attributes look like when using VaultSessionMiddleware as a test.
What's wrong with this?
Cookies are always generated unless you use something like
withAttribute(VaultSessionReset.key, VaultSessionReset)
in a Meiji way.I added the following Route to VaultSessionExample as a test, and a cookie was generated even though I did not set an Attribute in the Response.
I think we should only generate cookies if we explicitly set a value for attributes in the response.
The easiest way is to add a conditional branch so that a value is passed to ContextResponse only if Response or Context is empty.
If this solution is acceptable, I will create a pull request.
If I am wrong, I would appreciate it if you could let me know.
Thanks!
The text was updated successfully, but these errors were encountered: