Link to home
Start Free TrialLog in
Avatar of essentialtalk
essentialtalk

asked on

URGENT - Flash/Flex Upload & Java Session

Hello All,

I wrote a file upload component in Flex 2 and I am trying to upload to a servlet. I need to access the session from the servlet to get objects I have stored in the session but I cannot figure out how to load a session from a session id.

I am using Jrun 4 Update 6.

I have tried setting the url to:  /FileUplaod;JSESSIONID=<SESSION ID HERE>, this did not work.
I tried passing the session id as a post parameter named session, also did not work.

What happens is that the Flash Player makes the request from the flash player, which is actually outside of the browsers connections so I cannot access the session using request.getSession().

Is it even possible to load a session from a session id? How can I do this?

Thanks,

Matt
Avatar of Mick Barry
Mick Barry
Flag of Australia image

use: request.getSession();
it will return the session if there is one
Avatar of essentialtalk
essentialtalk

ASKER

OK, I figured it out.. oh my, how simple.

/FileUpload;JSESSIONID should be /FileUpload;jsessionid

I didn't realize it was case sensitive. Once I changed it I got the authenticated session and everything worked :)
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial