How to keep alive an NodeJS Passport session
问题 We're Node + Express + Passport for authentication, and persisting the session info to Redis. I have maxAge set on the session cookie, to time out in one hour. That all seems to be working fine but the problem is, the session cookie will expire in one hour regardless of the user's activity. Is there a way I can manually refresh/keep alive the session cookie? 回答1: You'll likely want to use the "rolling" option for your session. This "forces a cookie set on every response" and "resets the