expressjs/session

Request: Option for refreshing the session ID

Open

Aperta il 9 feb 2017

Vedi su GitHub
 (18 commenti) (7 reazioni) (0 assegnatari)JavaScript (6073 star) (977 fork)batch import
help wanted

Descrizione

Sometimes, there is the need to refresh the session ID without loosing the session data.

Examples:

  1. Refreshing session ID after authentication (to protect against session fixation attacks) https://www.owasp.org/index.php/Session_fixation https://github.com/jaredhanson/passport/issues/192
  2. Manually refreshing session ID before it expires (e.g. if the user wants to keep working after the maximum session lifetime, but we do not want the same session ID to be used)

Guida contributor