senchalabs/connect — Issue #455: cookie sessions do not remember expiry settings
Author: shtylman
Created: 2012-01-12 19:02:26+00:00
State: open

Cookie sessions always use the default options passed to the cookieSession creation function. Thus, if you change the expire time for a session cookie in a route, it is overwritten the next time the cookie session middleware runs.

This is because the cookie session middleware keeps creating a new cookie object and doesn't remember the changed settings.

Thoughts on working around this? The use case is longer expire times for logged in users versus non logged in users.