only one login per user
only one login per user
- Subject: only one login per user
- From: Nathan Dumar <email@hidden>
- Date: Tue, 22 Jun 2004 10:39:48 -0400
I would like to make sure a user account is not used by multiple people
at the same time, by checking to see if the user has already logged in
(has an active session). I can see two possibilities so far, but my
knowledge falls short with both ideas:
1) Store the info in the db and override the session.terminate() to set
a user to logged out (in case they don't log out, but the session times
out). How and where do I override session.terminate()?
2) Put a function at the application level that checks each session's
user variable (across all app instances) for the proposed user. How do
I phrase the WOApplication-level code to look down into each session?
How do I call this code from a page?
Is there a better way that I'm missing?
Thanks for your time.
Nathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.