cookie-session
cookie-session copied to clipboard
Suggestion: a custom name instead of req.session
Hello! 👋
Thank you for this package!
I'm considering contributing some code.
In a project I'm working on I'd like to utilize two separate sessions with different SameSite settings for the same endpoint.
If I understand correctly, it's not possible at the moment due to req.session
and req.sessionOptions
not being customizable.
Would a PR be welcomed?
@lukaszmakuch I am not involved in this particular project, but definitely would appreciate such flexibility for 'multiple sessions' setup..
@dougwilson What you think? Would you be willing to accept such MR from @lukaszmakuch ?
@dougwilson and @Ostefanini We also could make use of functionality to allow multiple cookie session middleware instances. Would you welcome (and review) a PR from us? If so, do you have any particular expectations around the approach to take? Thanks!!