Am 25.09.2013 08:03, schrieb Joshua Niehus:

Hello,

I am attempting to set the max age of a cookie but the browser shows Expiration/Max-Age as "session":

Cookie cooky = new Cookie();
cooky.maxAge = 10;
cooky.value = "boo!";
res.cookies["my_cooky"] = cooky;
res.redirect("/index.html");

Am I missing a step ?

Thanks,
Josh

Looks alright, and the cookie handling code seems to do the right thing,
too. I'll need to take a closer look later.

But what caught my eye was that all cookies are displayed as expiring
at the end of the session in my browser (Firefox Aurora) due to a
configuration setting, maybe that's the case for you, too?