spring-projects / spring-projects/spring-session
Omitting Path of a cookie
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 55
Description
Hi,
is it possible to completely omit Path attribute of a cookie?
From what I can see in DefaultCookieSerializer it doesn't seem possible.
I believe this can be useful in cases when an application is accessed from different paths.
And when Path is omitted browser will default to current resource path.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading DefaultCookieSerializer, which the issue identifies as the relevant entry point, to understand how the Path attribute is currently produced. Done means establishing a supported way to omit Path so browsers apply their default current-resource path behavior, with focused coverage for the resulting cookie output if the existing tests are located.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100