Session Key Change On Login

Posted: July 3rd, 2010 | Author: Arif Harbott | Filed under: Django | Tags: , | No Comments »

If you use the request.session.session_key for an anonymous user e.g. to store shopping cart information, and then use django.contrib.auth login be aware that the session key will change. This tends to catch out new Django developers.