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?
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?