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=<SE SSION 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
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=<SE
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
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 :)
/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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
it will return the session if there is one