Created
November 18, 2009 10:43
-
-
Save Bertg/237741 to your computer and use it in GitHub Desktop.
FlashSessionCookieMiddleware with fix for sessions with url encoded tokens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear Bert!
Thank you very much!
I spend half a day while solving same issue and playing with those escape/unescape combinations.
Your solution works for me. You saved my second half of a day! ))))) My Best Good Wishes to you!
Pavel
p.s. In our config we use POST params to send session.
In SWFUpload config script:
post_params : {
"target_element_id" : "<%=@element.id%>",
"<%= SYSTEM_SESSION_KEY%>" : "<%=CGI::escape(cookies[SYSTEM_SESSION_KEY])%>"
},
and we use this code to parse it in rails:
params = ::Rack::Request.new(env).params