On Apr 25, 2006, at 8:22 AM, Kieran Kelleher wrote:

I would like to get an array of sessions to list currently logged in users. I don't see any obvious API (for example in WOSessionStore, WOApplication, etc.) for grabbing an array of references to sessions and I guess this is by design to prevent concurrency problems?

That seems likely. If you did around, you _can_ do it, but I doubt that it would be a good idea.


I know I could use the database to capture log-in time, last request time and log-out (if they did) I guess. Just looking for a good strategy to get current session/user stats. Any one do this sort of thing before?

The application maintains session stats. I'd either use Anjo's suggestion of the notifications, or build something into the session constructor and terminate.

Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________
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