Hi All,

I have an app that needs to display all of the people who are currently logged in. Session has an instance of Person in it, which represents who's logged into that session. Now what I wanted to do was have a method in Application which returned an array of the people it gathered from each of its sessions.

Now the thing I can't figure out is how to get an array of Sessions from Application. I can ask the Application for its WOSessionStore, but I can't seem to get a Session out of this without either a Session ID or a WORequest.

Is there anyway to do what Im after ?

Another approach would be to manually keep a "static" list of people who have logged in inside Application, which is updated on Log-In and again on Log Out or session.terminate(). But it would be quite easy to get into a situation where this list gets out of sync ( say if someone doesn't log out, and logs in again a second time, you may end up with 2 of the person in the list, or just one, but it disappears when their first session times out ). Anyways thats why I wanted to go with a "dynamic" listing from Application itself.

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'The test of a first-rate intelligence is the ability to hold two opposed ideas in the mind at the same time and still be able to function.'
-F.Scott Fitzgerald,


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to