-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Access to cookie config with accessor method #5526
Conversation
With this minimal change one can provide different cookie configs for the same SessionHandler without coping the whole method into the inherited class. Signed-off-by: Dejan Pecar <[email protected]>
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.
ummmmmm not exactly sure what you say you want this for is a good idea..... but hey people use jetty in all sorts of weird and wonderful ways.
This change is harmless enough and probably makes the code more robust for a number of different weird things that could be done to _cookieConfig
, so LGTM.
@janbartel what do you think?
How would this be used? Would you override |
exactly. i want to have 2 different cookie configs and decide dynamically which one is used in |
@janbartel bump, can you review this? |
LGTM, but @dejpec can you fix the conflict in your branch so it will apply cleanly? |
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.
Seems fine, but please resolve the conflict in SessionHandler in your branch so we can apply it cleanly.
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
With this minimal change one can provide different cookie configs for the same SessionHandler
without coping the whole method into the inherited class.
Signed-off-by: Dejan Pecar [email protected]