Hi, Yes, the simplest way is to store the session id in the datastore.
You can get a session id via javax.servlet.http .HttpSession.getId(); regards didier On Feb 26, 7:51 pm, Scott <shathaw...@gmail.com> wrote: > Howdy, > > I want to only allow my users to have a single session at a time. The > act of logging in should invalidate a session that might have been > created from another devices as well as sending that device a notice > via the channel that the session had ended. > > I actually had this working on my dev server. I used a singleton to > hold a copy of the session object and channel information, and when > the user logged in from a different device, I would invalidate and > send a message. The problem is that since GAE the production server is > distributed, I have no guarantee of the same JVM on each call. > > Reading through docs and group post, the only possibility I could > think of was to retrieve the session object from the datastore or > memcache. Is it possible to read the session object from the either of > these locations? If so what is the key and object type? > > Thanks a lot, > Scott -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.