extend/cowboy — Issue #158: Can't set cookie expiry time without also setting max-age
Author: Vagabond
Created: 2012-03-09 21:34:47+00:00
State: open

I can't find anything on the internet that says they both have to be set for expires to work. For example, the wikipedia page on cookies has examples where only Expires is set:

http://en.wikipedia.org/wiki/HTTP_cookie#Expires_and_Max-Age

Right now, the code checks for max_age, and if its not set, it ignores the value of local_time:

https://github.com/extend/cowboy/blob/master/src/cowboy_cookies.erl#L59