• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting all Session Objects From Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting all Session Objects From Application


  • Subject: Getting all Session Objects From Application
  • From: Owen McKerrow <email@hidden>
  • Date: Thu, 24 Apr 2008 14:15:53 +1000

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Getting all Session Objects From Application
      • From: Guido Neitzer <email@hidden>
    • Re: Getting all Session Objects From Application
      • From: Chuck Hill <email@hidden>
  • Prev by Date: indexing non-sorted arrays in EOs
  • Next by Date: Re: indexing non-sorted arrays in EOs
  • Previous by thread: Re: indexing non-sorted arrays in EOs
  • Next by thread: Re: Getting all Session Objects From Application
  • Index(es):
    • Date
    • Thread