Opened 7 years ago

Closed 7 years ago

#15500 closed (wontfix)

PATCH: Specify the session cookie expiration as a UTC date

Reported by: tdignan Owned by: nobody
Component: contrib.sessions Version: 1.2
Severity: Keywords: sessions, settings
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I added functionality for this setting:

SESSION_COOKIE_EXPIRY_UTC = "2038-01-19 03:14:07"

Now the session cookie expiry can be specified as a UTC date as well as an offset in seconds.

If used it will override the default SESSION_COOKIE_AGE. Please let me know if I violated any conventions. I really want to get this functionality into Django!


Attachments (1)

add_support_for_cookie_expiry_setting.patch (2.4 KB) - added by tdignan 7 years ago.
Add support for setting cookie expiry with a UTC date (patch)

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by tdignan

Add support for setting cookie expiry with a UTC date (patch)

comment:1 Changed 7 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

I'm afraid I don't see the use case for having a setting to expire cookies at a particular time.

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