Created
December 10, 2015 18:55
-
-
Save markstgodard/5027b18a1c0251788310 to your computer and use it in GitHub Desktop.
dora secure cookie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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