cookie-session icon indicating copy to clipboard operation
cookie-session copied to clipboard

Suggestion: a custom name instead of req.session

Open lukaszmakuch opened this issue 4 years ago • 2 comments

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 avatar Jan 31 '21 13:01 lukaszmakuch

@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 ?

jardakotesovec avatar Feb 19 '21 14:02 jardakotesovec

@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!!

juditgreskovits avatar Feb 26 '24 16:02 juditgreskovits