Feature #3224
closedMethod to iterate through sessions
0%
Description
I looked in WebController, there is a sessions map however it is inaccessible so I'm requesting a feature to include a method to iterate through WApplications. In my case I want to post a WApplication::refresh() in all WApplications for a reload function. This may be useful in another situations like posting to certain WApplication(s) according to their state.
I understand that I can create my own mapping, however, would I require creating a new mutex for my own WServer implementation or is there already a mutex which I can use?
Updated by Koen Deforche over 10 years ago
- Status changed from New to Feedback
Hey,
My preference would be to add the ability to post to use WServer::post() to post to all sessions, using an empty string for the sessionId. In this way we avoid exposing the controller's lock.
That would work for your use-case?
Regards,
koen
Updated by Koen Deforche over 10 years ago
- Status changed from Feedback to InProgress
- Assignee set to Roel Standaert
- Target version set to 3.3.4
Roel,
Can you implement the postAll() option? Be sure to fetch the git first, and this should also be ipmlemented in JWt (which now also has WtServlet.post()).
Updated by Roel Standaert over 10 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 10 years ago
- Status changed from Resolved to Closed