Asa asks an interesting question. I wasn’t going to answer as Flash isn’t my area really, but I had an idea and I figured I’d suggest it. Please feel free to correct me if this is dumb. Anyway, here is the question:
I'm trying to make a file unloader using Flash & ColdFusion. I have a flash file embedded on a page that let's the user select a file, which is then posted to a ColdFusion page for upload. The problem is that the Flash player doesn't post cookies on file uploads, so the ColdFusion page that's getting posted to is under a new session. Is there a way to append the cfid to the url and have ColdFusion use that session instead of making a new one?
So I was a bit surprised by this. I can’t imagine why Flash would not do a ‘normal’ request and pass along the cookies. That being said - I think I know a way to do this. When you generate your HTML code to embed the Flash SWF, you can pass along the session.urltoken value via flash vars. The Flash app could read this and use it when it does its POST.
Any Flash users out there want to chime in? (I’m sure I must have at least one Flash guy reading the blog. He probably sits next to the one Photoshop guy reading my blog. ;)