Skip navigation
Currently Being Moderated

Share Session data between Java Session and Flex Session

Dec 2, 2011 1:45 AM

Tags: #java #session #blazeds

Hi!

I have some session data in a Java session that I want to share with the Session created by Flash.

Here is wat I want to do.

A SAML authentication filter (FEIDE login) puts the userID and user attributes in session attributes (Session A)

I want this userID ad the user attributes to be available in the Flash application.

 

Previously we only needed the userID. We put the userId in the flashvars array.

Now we need more user attributes. that are available in the java session (Session A).

 

The Flash application has its own session (Session B). There is no obvious way of sharing data between Session A and Session B.

The solution I came up with is:

  • The jsp page that loads the Flash application puts the sessionID in the flashVars
  • The session data is put in a global map with the session ID as key.
  • The user attributes are available throug a RemoteObject. Each call has the sessionID from sessionA.

 

Now my question. Is there a more elegant way of doing the same thing?

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points