#508 closed defect (fixed)
max_age for cookies doesn't work in safari (and perhaps not IE)
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Design decision needed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The max_age setting for a cookie is ignored in safari. set_cookie needs to support expires.
Attachments (1)
Change History (4)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Cookies and Sessions were per-browser-session-only for me in both IE 6 and Opera 8.5. I'll attach a patch in a minute.
comment:3 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
here is a patch to allow expired to be used as well
Index: django/utils/httpwrappers.py
===================================================================
--- django/utils/httpwrappers.py (revision 640)
+++ django/utils/httpwrappers.py (working copy)
@@ -168,9 +168,9 @@
+ def set_cookie(self, key, value=, max_age=None, expires=None, path='/', domain=None, secure=None):
+ for var in ('max_age', 'path', 'domain', 'secure' , 'expires'):