rack/rack — pull request #429 by matthewtoast (2012-09-08 17:41:30+00:00)
Title: Include Max-Age in Set-Cookie header

Allows `:max_age` to be passed to `set_cookie_header!`. If passed, includes `max-age` in the `Set-Cookie` header. Sets `max-age=0;` when the cookie header is deleted.

Apologies, since I know you just closed a [similar pull request](https://github.com/rack/rack/pull/264). At least [two folks](http://stackoverflow.com/questions/12271207/in-rails-how-can-i-set-a-cookies-max-age) seem to think it worthwhile. :) Let me know could be improved or tested.

(Re: browsers, [one source says](http://mrcoles.com/blog/cookies-max-age-vs-expires/) IE will ignore `max-age` and fall back to `expires`.)