Project

General

Profile

Actions

Feature #3224

closed

Method to iterate through sessions

Added by Saif Rehman over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
05/29/2014
Due date:
% Done:

0%

Estimated time:

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?

Actions #1

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

Actions #2

Updated by Saif Rehman over 10 years ago

Yes that would work

Actions #3

Updated by Saif Rehman over 10 years ago

Or a postAll() function?

Actions #4

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()).

Actions #5

Updated by Roel Standaert over 10 years ago

  • Status changed from InProgress to Resolved
Actions #6

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF