maxage should be seconds. make sure the calculated value is seconds
don't override options.expires if it's been defined
toGMTString is deprecated. replace with toUTCString