Skip to content

Instantly share code, notes, and snippets.

@nuclearghost
Created December 15, 2016 17:23
Show Gist options
  • Save nuclearghost/dc0ec16df7d474fcd5b47e707c71c46b to your computer and use it in GitHub Desktop.
Save nuclearghost/dc0ec16df7d474fcd5b47e707c71c46b to your computer and use it in GitHub Desktop.
Simple Sinatra Server That Sets Cookies
# frozen_string_literal: true
source "https://rubygems.org"
gem "sinatra"
gem "sinatra-contrib"
@nuclearghost
Copy link
Author

bundle install
ruby cookie_server.rb
Open localhost:4567/set in the browser to set the cookie and see it set upon redirection

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