-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow to customize the way the session cookie is created. Fixes #155 #141 #112 #106 #162
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
Allow to customize the way the session cookie is created. Fixes #155 #141 #112 #106 #162
Conversation
I need to customize secure flag of Cookie as well. +1 |
@rwinch is there anything missing preventing this to be merged? I would really like to see this in 1.0.1 as right now, we have to provide our own CookieHttpSessionStrategy just to override how certain things in the cookie are set. Thx |
@domdorn Thanks for the quick responses. I am rather busy with getting Security 4.0 GA out right now so haven't had time to look at Spring Session. After Security 4.0 GA I will be focusing on a 1.0.1 release. We will make sure something gets in 1.0.1 to resolve your issue. |
1af9f89
to
e4c74eb
Compare
I needed this as well. I needed to set the context path to a fixed value so I am glad to see that this is now possible in this PR. The
The default implementation (ie. Just a suggestion...but this approach seems a bit more flexible. OR. Another far simpler approach would be to remove the |
👍 |
Hi, Any progress on this PR ? It's 8 months since it's been proposed while this functionality is required by many. I for instance have the same issue as @Youmoo. |
Thanks for the great request! I'm trying to aggregate all the feature requests for cookies, so we can solve this problem more holistically. Therefore, I'm closing this in favor of #299 which takes this feature into account. |
This allows to customize all parameters of the cookie to be generated and also allows to provide a strategy to manually calculate the contextPath (in case it needs a more complex logic to calculate it then just setting it from the request or setting it to a static value).
It includes test-cases and documentation in form of javadoc