Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#33760 closed New feature (wontfix)

Allow setting session cookie name dynamically

Reported by: Dan Strokirk Owned by: nobody
Component: contrib.sessions Version: 4.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Currently it's only possible to use a single session cookie, but it can be useful in a multi-tenant application to use multiple session cookies.

Adding a new get_cookie_name or get_cookie_params method to the SessionMiddleware class might be one way to implement this, which means that you can then then use your own subclassed middleware to override it.

If this seems like a reasonable feature to add I'd be glad to supply a patch.

Change History (2)

comment:1 by Carlton Gibson, 2 years ago

Resolution: wontfix
Status: newclosed

Hi.

I'd likely think this too niche to justify the additional hooks.

Can I ask you to post to the DevelopersMailingList, which is a better venue for these kind of feature requests than the ticket tracker here, which gets far fewer eyes? If there's a general approval then we can reopen. Thanks.

in reply to:  1 comment:2 by Dan Strokirk, 2 years ago

Absolutely, thanks!

Note: See TracTickets for help on using tickets.
Back to Top