• 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
only one login per user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: only one login per user
      • From: Tony Becker <email@hidden>
  • Prev by Date: Re: refresh an enterprise object
  • Next by Date: Re: initiate content of NSArray
  • Previous by thread: Re: Duplicate records
  • Next by thread: Re: only one login per user
  • Index(es):
    • Date
    • Thread