0

I use the Sinatra:Contrib gem to set a cookie.

cookies[:something] = 'foobar'

But in firebug I saw that it's only valid until the end of the session.

How can I manually set the expiration date of the cookie?

BartoszKP
  • 33,416
  • 13
  • 100
  • 127
ada91
  • 798
  • 2
  • 6
  • 19

0 Answers0