Skip to content

Instantly share code, notes, and snippets.

@markstgodard
Created December 10, 2015 18:55
Show Gist options
  • Save markstgodard/5027b18a1c0251788310 to your computer and use it in GitHub Desktop.
Save markstgodard/5027b18a1c0251788310 to your computer and use it in GitHub Desktop.
dora secure cookie
class Instances < Sinatra::Base
get '/id' do
ID
end
post '/session' do
response.set_cookie('JSESSIONID', { value: ID, secure: true} )
"Please read the README.md for help on how to use sticky sessions."
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment