Opened 19 years ago
Closed 19 years ago
#1048 closed defect (fixed)
[patch] AttributeError when SESSION_SAVE_EVERY_REQUEST is True and no cookie has been set yet.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
[1303] introduced SESSION_SAVE_EVERY_REQUEST. The code in source:django/trunk/django/middleware/sessions.py does not handle the situation when
- there is no cookie in the browser yet (or no sessionid for the host), and
- SESSION_SAVE_EVERY_REQUEST is True.
The reason it has failed to catch someone's attention may be that browsers are often set to keep the cookies. This error reappeared with the name of the default cookies changed in [1584].
Attachments (1)
Change History (2)
by , 19 years ago
Attachment: | middleware-sessions_r1303.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [1978]) Fixed #1048 -- Fixed AttributeError in sessions framework when SESSION_SAVE_EVERY_REQUEST is True and no cookie has been set yet. Thanks, Jiri Barton