get ALL active sessions

129 views
Skip to first unread message

bruuuno

unread,
May 9, 2011, 5:17:56 AM5/9/11
to Google Web Toolkit
Hello everyone,
I'm creating a game for 2 players (checkers).

A player logs in with username and password and a new session is
created.
This user start a game with another player logged in (with another
session).

How can I handle the two sessions?
Is there a << HttpSession session = getSession(sessionId) >> method or
something?

I have to get the move by the first player and send it to the second
player, then get the move by the second player and send to the first.

Thanks in advance

joe kolba

unread,
May 9, 2011, 10:44:53 AM5/9/11
to google-we...@googlegroups.com
When the user logs in, insert a row into a table to keep track of all of the users logged in and their session ids.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Rajesh

unread,
May 9, 2011, 10:50:25 AM5/9/11
to google-we...@googlegroups.com
For the current session, get the context. then from the context, get the session of interest passing it the session id.. I remember doing something like this sometime back & not sure how much help this would be of.
Reply all
Reply to author
Forward
0 new messages