[patch] AttributeError when SESSION_SAVE_EVERY_REQUEST is True and no cookie has been set yet.
|Reported by:||Jiri Barton <jbar@…>||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
 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 .