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
  • 34,786
  • 15
  • 102
  • 130
ada91
  • 828
  • 2
  • 7
  • 19

0 Answers0