Improve failure message for test_invalid_session_key
|Reported by:||justin@…||Owned by:||jMyles|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
contrib.sessions.tests.SessionTestsMixin.test_invalid_key raises AttributeError if middleware has written an item to the cache which uses an integer for the key.
Ticket author found that djangobb (a packaged django forum app which ticket author has no affiliation) uses this technique.
Conventional session cache keys, for security as well as readability, need to use namespaces.