I have a flash application that connects to the server by flash
remoting. In each flash remoting service call, I am passing back the
sessionid to the server, compare it to the session id stored in database
and determine that the session is not expired. I then retrieve session
by sessionid, and use the session information for rendering. A such
method is available in java, HttpContext.getSession(sessionid).