-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Jan Truksa opened SPR-16713 and commented
Would it be possible to have in org.springframework.web.server.session.WebSessionStore method like:
Mono<Map<String, WebSession>> getSessions()With default implementation like:
public Mono<Map<String, WebSession>> getSessions() {
return Mono.just(Collections.unmodifiableMap(sessions));
}The thing I'm going to do is simple session management like list all active sessions, manually invalidate session by admin, etc. Obviously, I can just re-implement some implementation of WebSessionStore like InMemoryWebSessionStore and use this implementation in my application, but I would appreciate some native support.
On the other hand is it even good practice to expose sessions like this, when there isn't native support?
Affects: 5.0.7
Issue Links:
- InMemoryWebSessionStore could leak memory if sessions created but never used [SPR-17020] #21558 InMemoryWebSessionStore could leak memory if sessions created but never used
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement