Skip to content

Instantly share code, notes, and snippets.

@swistaczek
Created May 31, 2010 17:43
Show Gist options
  • Save swistaczek/420066 to your computer and use it in GitHub Desktop.
Save swistaczek/420066 to your computer and use it in GitHub Desktop.
Rails.application.config.middleware.insert_before( ActionDispatch::Session::CookieStore, FlashSessionCookieMiddleware, "_xyz")
## Where "_xyz" is yours Session Cookie name

== Using Rails3 with uploadify

Add this to 'scriptData' in js (which is loading uploadify)


  '_maxhost_upload': $('meta[name=cses]').attr('content')

And this to yours application layout


    %meta{ :name => "cses", :content => cookies["_xyz"]}

where _xyz is Yours session cookie key.

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