Provide a way to request a session without creating one. Please see https://github.com/spring-projects/spring-framework/issues/26958 for details

Note that this is intended to track the change mentioned in https://github.com/spring-projects/spring-framework/issues/26958#issuecomment-856986682

We can explore a more optimal, longer term solution for 6.0, such as new methods on WebSession and ServerWebExchange or perhaps a non-blocking id generator if that's even feasible.

Comment From: poutsma

@rwinch We were wondering if there is still a use case for this issue, after the resolution of #26958? Note that in WebFlux, sessions work a bit differently that in a Servlet environment: the WebSession might be created, but it is not stored until the session is started.

Comment From: rstoyanchev

See also the Javadoc on WebSession#isStarted, which protects the call to save() in DefaultWebSessionManager, so that generally a session is not created unless either explicitly started or session attributes are added.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.