With new version of play/netty (2.3.9/3.9.8) the generation of cookie max-age field is borked.
A simple controller like:
def test = Action { request =>
Ok.withCookies(Cookie("test", "look at maxAge", Some(2592000)))
}
generates a response with a negative max-age:
HTTP/1.1 200 OK
Content-Length: 0
Set-Cookie: test=look at maxAge; Max-Age=-1702966; Expires=Tue, 21 Apr 2015 20:57:00 GMT; Path=/; HTTPOnly