session
session copied to clipboard
Feature request: Renew session id
My goal is to change session id but make every other remain unchanged. I think session.regenerate() will be useful. But it will destroy and re-create the session instance.
req.session.regenerate(function(err) {
// will have a new session here
})
Can we have something like that?
req.session.regenerate(preserveData = false, function(err) {
// will have a new session here
// if preserveData set to true, preserve session data
})
Definately something that has been on the docket, I believe. Duplicate of #425 I think. If you don't think this is a duplicate of that issue, I may be misunderstanding the feature request, I apologise!
That one exactly what I mean, I missed that sorry.