If I call regenerateSession, the old sessionId is destroyed, but when new session hash is equals to the originalHash, it wll not save new sessionId to sessionstore and cookie.
(Old sessionHash equals new sessionHash is a common scene in my application, but maybe no for others.)
the source code:
// rolling session will always reset cookie and session if (!options.rolling && newHash === originalHash) { return debug('session not modified'); }
maybe should add a condition like this:
// rolling session will always reset cookie and session if (!options.rolling && newHash === originalHash && !isNew) { return debug('session not modified'); }
If I call regenerateSession, the old sessionId is destroyed, but when new session hash is equals to the originalHash, it wll not save new sessionId to sessionstore and cookie. (Old sessionHash equals new sessionHash is a common scene in my application, but maybe no for others.)
the source code:
// rolling session will always reset cookie and session if (!options.rolling && newHash === originalHash) { return debug('session not modified'); }
maybe should add a condition like this:
// rolling session will always reset cookie and session if (!options.rolling && newHash === originalHash && !isNew) { return debug('session not modified'); }