Get Session Id from a widget

0
Hello, How can I get the user's session id from a widget, I need to pass this session id from an applet to a servlet created by using Core.addRequestHandler. I tried to use: //System.User[@ID='" + id + "']/System.Session_User/System.Session but it returns null.
asked
2 answers
2

Do not ever use sessionIDs client side in javascript or applets! This is a security risk as makes your app sensitive for session hijacking trough XSS attacks.

answered
0

You can use directly use mx.session to get session information.

mx.session.getUserAttribute()

from a widget. Use your own attribute.

Edit: See this for the sessions.

answered