#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)
follow-up: 2 comment:1 by , 2 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.