spring-projects / spring-projects/spring-session
Is there a way to implement what org.springframework.web.util.HttpSessionMutexListener provides?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 1.2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 55
Description
There are things like spring securty and spring mvc that will use session mutex provided by org.springframework.web.util.HttpSessionMutexListener, which is javax.servlet.http.HttpSessionListener.
javax.servlet.http.HttpSessionListener has two methods sessionCreated(HttpSessionEvent) and sessionDestroyed(HttpSessionEvent).
I saw that there is SessionDestroyedEvent, but is there is alternative to sessionCreated()?
HttpSessionStrategy#onNewSession() will be invoked too late (after the request is processed).
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 the references to HttpSessionMutexListener, HttpSessionListener, SessionDestroyedEvent, and HttpSessionStrategy#onNewSession in the issue. Determine whether the project exposes a session-created hook before request processing and what lifecycle behavior an alternative must provide; done requires a decided, supported approach rather than an unresolved API question.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100