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.


Get SESSION id/key (session_key)

Posted: June 23rd, 2010 | Author: Davo | Filed under: Django | Tags: | 4 Comments »

You can easily grab the session key/id from the request object

     print request.session.session_key