PDA

View Full Version : Flex 2 and Session Variables


unitedlocalbands
04-15-2008, 03:53 AM
When a user logs into my site I create a set of session variables to Identify the person who is logged in.

When the flex 2 application loads for my picture uploader though it will start its own new session.... I think...

I think this because when I have the flex 2 application send the files to the server for validation and upload, the session variables do not exist, so i cant see who is uploading what.

Is there any way to make the flex 2 application exist in the current session that was created when the person logged in the first place?

kahuja
04-15-2008, 05:17 AM
When a user logs into my site I create a set of session variables to Identify the person who is logged in.

Why do you do this?

Flex creates a session for you and you should be using the same one.

unitedlocalbands
04-15-2008, 05:01 PM
The flex 2 application is just a very small peice of my site. I only use the flex2 app to allow users to upload multiple pictutres at one time. So the flex2 to applicationonly loads when a users goes to my picture upload.

Is there a way to see the session variable that the flex2 app creates?

kahuja
04-15-2008, 06:32 PM
Yes. This comes alongside the Flex DataServices. Look for flex.messaging package