Code

Opened 3 years ago

Closed 3 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:

Description

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!

Thanks!

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by tdignan

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

comment:1 Changed 3 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.