I would like to create my own custom scope bean which will use HTTP session (kind of Flash scope).
According to Spring Manual I need to implement org.springframewor
I recommend to have a look at the source code of org.springframework.web.context.request.SessionScope. This scope must have solved the same problem some how.
It looks like that they use: RequestContextHolder.currentRequestAttributes().getSessionId()
RequestContextHolder.currentRequestAttributes().getSessionId()