Hi,
I might be very wrong, you can't create session variables using actionscript. You can use Local Shared Objects, but these need to be created within the app itself, and I am not sure if the browser can read them.
Here is the live docs link
http...