Project

General

Profile

Feature #3224

Method to iterate through sessions

Added by Saif Rehman about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
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?

#1

Updated by Koen Deforche about 8 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

#2

Updated by Saif Rehman about 8 years ago

Yes that would work

#3

Updated by Saif Rehman about 8 years ago

Or a postAll() function?

#4

Updated by Koen Deforche about 8 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()).

#5

Updated by Roel Standaert about 8 years ago

  • Status changed from InProgress to Resolved
#6

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF