Skip to content

Instantly share code, notes, and snippets.

@Bertg
Created November 18, 2009 10:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Bertg/237741 to your computer and use it in GitHub Desktop.
Save Bertg/237741 to your computer and use it in GitHub Desktop.
FlashSessionCookieMiddleware with fix for sessions with url encoded tokens
@pavelvasev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment