module Roda::RodaPlugins::Cookies::ResponseMethods

def delete_cookie(key, value = {})

response.delete_cookie('foo', :domain=>'example.org')
response.delete_cookie('foo')

Example:
override the default one used to delete the cookie.
deletes the cookie. A value hash can be provided to
Modify the headers to include a Set-Cookie value that
def delete_cookie(key, value = {})
  ::Rack::Utils.delete_cookie_header!(@headers, key, value)
end

def set_cookie(key, value)

response.set_cookie('foo', :value=>'bar', :domain=>'example.org')
response.set_cookie('foo', 'bar')

Set the cookie with the given key in the headers.
def set_cookie(key, value)
  ::Rack::Utils.set_cookie_header!(@headers, key, value)
end