0

I'm using Java + BlazeDS4 + Tomcat + FlashBuilder4.6

....

How do I get the session id for each user logged into the site?

I would like to get the session id and closes her case is connected in several places with the same user.

...

I searched all over the internet and found nothing related to this.

I'm new in Flash Builder and thank all the help.

thank you

user2530802
  • 119
  • 2
  • 10
  • Does Flash Builder have server side components, and in that case using what framework? Only the server knows about all connections, so a client can't really make that call. – Joachim Isaksson Aug 16 '13 at 14:32
  • I don't understand what sessionID you are referring to! Are you talking about a Flex/flash Application built with Flash Builder? Or are you explicitly trying to do some Flash Builder Plugin development? Are you referring to a unique ID assigned to a server side session? Or something different? – JeffryHouser Aug 16 '13 at 14:32
  • Joachim Isaksson, I'm using Java + BlazeDS, any idea how to do this? – user2530802 Aug 16 '13 at 16:46
  • Reboog, I'm using Java + BlazeDS + Tomcat + FlashBuilder is a normal application made ​​in Flash Builder, just precison of sessionID, I think I can get by BlazeDS not understand how to do this. – user2530802 Aug 16 '13 at 16:48
  • @user2530802 Then, if I understand, you need to get the Java-session from inside your Flash App? Usually browser cookies are used to maintain the session on the server side between multiple requests from the client. And Flash Player will send those browser cookies with each request so, in theory your backend service should have access to session variables for the user who logged into the Flash app. Were you having a specific problem? – JeffryHouser Aug 16 '13 at 20:30

1 Answers1

0

Normally, if you are using adapters or the servlets to find out, you may want to maintain the map of the username=UserSessionID.

To get the usersession id, get you can use FlexContext.getFlexSession() or you can use FlexSession.getServletRequest().getSession()

More no this here

Zeus
  • 6,386
  • 6
  • 54
  • 89
  • Thanks everyone for the help, I also found the link below which helped me a lot. link: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=lcconnections_3.html – user2530802 Aug 16 '13 at 22:05